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