From d2e9ea8de6b1b81bd1be817adf8a8c486dcf84ef Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 17 Jan 2018 11:27:44 +0000 Subject: [PATCH] test: fix test_worker to work when deprecation warnings are emitted. --- artiq/test/test_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/test/test_worker.py b/artiq/test/test_worker.py index 73c09b352..ccf39a84f 100644 --- a/artiq/test/test_worker.py +++ b/artiq/test/test_worker.py @@ -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])