mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Fix test for SystemExit error
This commit is contained in:
parent
7248772f72
commit
64105856f4
@ -181,5 +181,5 @@ def test_notebook_stop():
|
||||
app.initialize(['999'])
|
||||
with nt.assert_raises(SystemExit) as exc:
|
||||
app.start()
|
||||
nt.assert_equal(exc.exception.exception_code, 1)
|
||||
nt.assert_equal(exc.exception.code, 1)
|
||||
nt.assert_equal(len(app.servers_shut_down), 0)
|
||||
|
Loading…
Reference in New Issue
Block a user