Skip to content

Commit

Permalink
Python 3.9 shuffled the exception hierarchy, have to look for IOError…
Browse files Browse the repository at this point in the history
…, 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
  • Loading branch information
jiridanek committed Apr 21, 2021
1 parent beeb07c commit 9e6b7a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ def __init__(self, name=None, listen_port=None, wait=True,
self.args += self.cl_args
super(Http2Server, self).__init__(self.args, name=name, expect=expect)
if wait:
self.wait_ready()
try:
self.wait_ready()
except Exception:
self.teardown()
raise

def wait_ready(self, **retry_kwargs):
"""
Expand Down

0 comments on commit 9e6b7a5

Please sign in to comment.