Move requests_unixsocket import outside of fetch_url()

pull/5769/head
Tomas Hrnciar 6 years ago
parent 09ba565c96
commit 63ee7ac809

@ -53,6 +53,9 @@ class NotebookTestBase(TestCase):
for _ in range(int(MAX_WAITTIME/POLL_INTERVAL)):
try:
cls.fetch_url(url)
except ModuleNotFoundError as error:
# Errors that should be immediately thrown back to caller
raise error
except Exception as e:
if not cls.notebook_thread.is_alive():
raise RuntimeError("The notebook server failed to start") from e

Loading…
Cancel
Save