Pass over the bad file descriptor error
@@ -85,7 +85,11 @@ class SeleniumTestCase(TestCase, LiveServerTestCase):
def tearDown(self):
self.browser.close()
+ try:
self.browser.quit()
+ except OSError:
+ # http://stackoverflow.com/questions/42705674/python-selenium-phantomjs-quit-error
+ pass
super(SeleniumTestCase, self).tearDown()
def url_change(self, id):
