mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Test that worker cleanup happens
This commit is contained in:
parent
44ccd8104b
commit
223444e208
@ -218,6 +218,10 @@ def find_tests():
|
||||
return re.sub(r'\s+', ' ', ans)
|
||||
self.assertEqual(c(html), c(open(path, 'rb').read().decode('utf-8')))
|
||||
self.assertRaises(ValueError, overseer.fetch_url, 'test', 'file:///does-not-exist.html')
|
||||
w = overseer.workers
|
||||
self.assertEqual(len(w), 1)
|
||||
del overseer
|
||||
self.assertFalse(w)
|
||||
|
||||
return unittest.defaultTestLoader.loadTestsFromTestCase(TestSimpleWebEngineScraper)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user