mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #7709 from SylvainCorlay/iptest
JSController cleanup: support case where no server is started
This commit is contained in:
commit
f7f802bb33
@ -396,6 +396,7 @@ class JSController(TestController):
|
||||
self.server_port = info['port']
|
||||
|
||||
def cleanup(self):
|
||||
if hasattr(self, 'server'):
|
||||
try:
|
||||
self.server.terminate()
|
||||
except OSError:
|
||||
|
Loading…
Reference in New Issue
Block a user