O'Reilly logo
  • Sergey Solodukhin thinks this is interesting:

Add a self.browser.refresh() just before the self.browser.quit() in tearDown to get rid of them

From

Cover of Test-Driven Development with Python, 2nd Edition

Note

still the same error...
replace self.browser.quit() with self.browser.close() and error disappear