From 13173b89fb5c037a960a330fb0c49527808821f2 Mon Sep 17 00:00:00 2001 From: Logan Page Date: Mon, 6 Feb 2017 21:26:49 +0200 Subject: [PATCH] force phantomjs service to terminate (see https://github.com/SeleniumHQ/selenium/issues/767) --- nbgrader/tests/nbextensions/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nbgrader/tests/nbextensions/conftest.py b/nbgrader/tests/nbextensions/conftest.py index 6c54ed7a8..ee9aef18d 100644 --- a/nbgrader/tests/nbextensions/conftest.py +++ b/nbgrader/tests/nbextensions/conftest.py @@ -205,9 +205,10 @@ def fin(): print(message) print("<------------------------------------------>") browser.save_screenshot(os.path.join(os.path.dirname(__file__), 'selenium.screenshot.png')) + browser.service.process.send_signal(signal.SIGTERM) browser.quit() - request.addfinalizer(fin) + request.addfinalizer(fin) return browser