tests/multi_net: Fix TCP accept test when using system error numbers.

If a port is not using internal error numbers, which match both lwIP and
Linux error numbers, ENTOCONN from standard libraries errno.h equals 128,
not 107.
pull/8695/head
iabdalkader 2022-05-17 15:42:01 +02:00 zatwierdzone przez Damien George
rodzic 6b6ceafe1a
commit beeb250d58
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ def instance0():
try:
print("recv", s.recv(10)) # should raise Errno 107 ENOTCONN
except OSError as er:
print(er.errno)
print(er.errno in (107, 128))
s.close()