diff options
Diffstat (limited to 'tests/net_hosted/connect_nonblock.py')
-rw-r--r-- | tests/net_hosted/connect_nonblock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/net_hosted/connect_nonblock.py b/tests/net_hosted/connect_nonblock.py index c024b65a0a..4b8055c161 100644 --- a/tests/net_hosted/connect_nonblock.py +++ b/tests/net_hosted/connect_nonblock.py @@ -13,7 +13,7 @@ def test(peer_addr): try: s.connect(peer_addr) except OSError as er: - print(er.args[0] == errno.EINPROGRESS) + print(er.errno == errno.EINPROGRESS) s.close() |