forked from M-Labs/artiq
test: fix test_worker to work when deprecation warnings are emitted.
This commit is contained in:
parent
a85fd13c21
commit
d2e9ea8de6
|
@ -90,7 +90,7 @@ class WorkerCase(unittest.TestCase):
|
||||||
with self.assertLogs() as logs:
|
with self.assertLogs() as logs:
|
||||||
with self.assertRaises(WorkerInternalException):
|
with self.assertRaises(WorkerInternalException):
|
||||||
_run_experiment("ExceptionTermination")
|
_run_experiment("ExceptionTermination")
|
||||||
self.assertEqual(len(logs.records), 1)
|
self.assertGreater(len(logs.records), 0)
|
||||||
self.assertIn("Terminating with exception (TypeError)",
|
self.assertIn("Terminating with exception (TypeError)",
|
||||||
logs.output[0])
|
logs.output[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue