Fix test for SystemExit error

This commit is contained in:
Thomas Kluyver 2017-10-31 15:47:28 +00:00
parent 7248772f72
commit 64105856f4

View File

@ -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)