Merge pull request #7709 from SylvainCorlay/iptest

JSController cleanup: support case where no server is started
This commit is contained in:
Thomas Kluyver 2015-02-08 11:52:27 -08:00
commit f7f802bb33

View File

@ -396,6 +396,7 @@ class JSController(TestController):
self.server_port = info['port'] self.server_port = info['port']
def cleanup(self): def cleanup(self):
if hasattr(self, 'server'):
try: try:
self.server.terminate() self.server.terminate()
except OSError: except OSError: