diff --git a/artiq/test/sync_struct.py b/artiq/test/sync_struct.py index 3509bae23..9644becf6 100644 --- a/artiq/test/sync_struct.py +++ b/artiq/test/sync_struct.py @@ -37,8 +37,8 @@ class SyncStructCase(unittest.TestCase): return init def notify(self, mod): - if (mod["action"] == "init" and "finished" in mod["struct"])\ - or (mod["action"] == "setitem" and mod["key"] == "finished"): + if ((mod["action"] == "init" and "finished" in mod["struct"]) + or (mod["action"] == "setitem" and mod["key"] == "finished")): self.receiving_done.set() def setUp(self):