Skip to content

Commit d6f2a85

Browse files
committed
multi_net/tcp_accept_recv.py: Fix test when not using internal errno.
* 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.
1 parent e3c880a commit d6f2a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/multi_net/tcp_accept_recv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def instance0():
1717
try:
1818
print("recv", s.recv(10)) # should raise Errno 107 ENOTCONN
1919
except OSError as er:
20-
print(er.errno)
20+
print(er.errno in (107, 128))
2121
s.close()
2222

2323

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy