You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the NotebookApp raises an exception on initialization, a test can
hang forever. This can happen when passing configuration when
customizing NotebookTestBase:
```
class TestMissingExtension(NotebookTestBase):
@classmethod
def get_argv(cls):
argv = super(TestMissingExtension, cls).get_argv()
argv.extend(
[
"--NotebookApp.session_manager_class=doesnt_exist",
]
)
return argv
def test_this_will_hang_forever(self):
pass
```
Since the exception happens before the try/finally the `Event` will
never be triggered. By including the construction and initialization of
the notebook in the try/finally we can handle situations like this.
0 commit comments