diff options
| author | Thorsten von Eicken | 2020-11-11 17:46:18 -0800 |
|---|---|---|
| committer | Damien George | 2021-02-15 23:47:02 +1100 |
| commit | 902da05a180d40e62373656f8be94a01ca39eb94 (patch) | |
| tree | 5d6499fd99e831a932fa8431a2b33b6dc12bea49 /tests | |
| parent | 771376a0cb26c7a74554ff421feff9c92eadceeb (diff) | |
esp32: Set MICROPY_USE_INTERNAL_ERRNO=0 to use toolchain's errno.h.
The underlying OS (the ESP-IDF) uses it's own internal errno codes and so
it's simpler and cleaner to use those rather than trying to convert
everything to the values defined in py/mperrno.h.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/net_hosted/connect_nonblock.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/net_hosted/connect_nonblock.py b/tests/net_hosted/connect_nonblock.py index 3a3eaa2ba..c024b65a0 100644 --- a/tests/net_hosted/connect_nonblock.py +++ b/tests/net_hosted/connect_nonblock.py @@ -2,8 +2,9 @@ try: import usocket as socket + import uerrno as errno except: - import socket + import socket, errno def test(peer_addr): @@ -12,7 +13,7 @@ def test(peer_addr): try: s.connect(peer_addr) except OSError as er: - print(er.args[0] == 115) # 115 is EINPROGRESS + print(er.args[0] == errno.EINPROGRESS) s.close() |
