Skip to content

Commit

Permalink
force phantomjs service to terminate (see SeleniumHQ/selenium#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgpage committed Feb 6, 2017
1 parent 34d9351 commit 13173b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nbgrader/tests/nbextensions/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 13173b8

Please sign in to comment.