Skip to content

Commit 2b47644

Browse files
authored
Merge pull request #5769 from hrnciar/requests-unixsocket-import
Move requests_unixsocket import outside of UNIXSocketNotebookTestBase.fetch_url()
2 parents d5bcecd + 63ee7ac commit 2b47644

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notebook/tests/launchnotebook.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def wait_until_alive(cls):
5353
for _ in range(int(MAX_WAITTIME/POLL_INTERVAL)):
5454
try:
5555
cls.fetch_url(url)
56+
except ModuleNotFoundError as error:
57+
# Errors that should be immediately thrown back to caller
58+
raise error
5659
except Exception as e:
5760
if not cls.notebook_thread.is_alive():
5861
raise RuntimeError("The notebook server failed to start") from e

0 commit comments

Comments
 (0)