diff --git a/notebook/tests/launchnotebook.py b/notebook/tests/launchnotebook.py index 24730c224..7e24ee2da 100644 --- a/notebook/tests/launchnotebook.py +++ b/notebook/tests/launchnotebook.py @@ -115,7 +115,8 @@ class NotebookTestBase(TestCase): # set the event, so failure to start doesn't cause a hang started.set() app.session_manager.close() - cls.notebook_thread = Thread(target=start_thread, daemon=True) + cls.notebook_thread = Thread(target=start_thread) + cls.notebook_thread.daemon = True cls.notebook_thread.start() started.wait() cls.wait_until_alive()