Skip to content

Commit 69210ab

Browse files
committed
Python 3.9 shuffled the exception hierarchy, have to look for IOError, OSError one of which is common parent of both hierarchies
The change should've been API compatible, so that's not the reason for failing PR https://docs.python.org/3.9/library/socket.html#socket.error
1 parent f832382 commit 69210ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/system_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,11 @@ def __init__(self, name=None, listen_port=None, wait=True,
384384
self.args += self.cl_args
385385
super(Http2Server, self).__init__(self.args, name=name, expect=expect)
386386
if wait:
387-
self.wait_ready()
387+
try:
388+
self.wait_ready()
389+
except Exception:
390+
self.teardown()
391+
raise
388392

389393
def wait_ready(self, **retry_kwargs):
390394
"""

0 commit comments

Comments
 (0)