test: fix test_worker to work when deprecation warnings are emitted.

pull/922/head
whitequark 2018-01-17 11:27:44 +00:00
parent ed3e3b2791
commit 3313e997df
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class WorkerCase(unittest.TestCase):
with self.assertLogs() as logs:
with self.assertRaises(WorkerInternalException):
_run_experiment("ExceptionTermination")
self.assertEqual(len(logs.records), 1)
self.assertGreater(len(logs.records), 0)
self.assertIn("Terminating with exception (TypeError)",
logs.output[0])