2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

test/coredevice: PEP8

This commit is contained in:
Sebastien Bourdeauducq 2015-12-24 19:26:24 +08:00
parent bf1a3a5b8f
commit 7475b3813e

View File

@ -24,7 +24,9 @@ class AnalyzerTest(ExperimentCase):
exp.run()
dump = decode_dump(comm.get_analyzer_dump())
ttl_messages = [msg for msg in dump.messages if isinstance(msg, OutputMessage)]
ttl_messages = [msg for msg in dump.messages
if isinstance(msg, OutputMessage)]
self.assertEqual(len(ttl_messages), 2)
self.assertEqual(abs(ttl_messages[0].timestamp - ttl_messages[1].timestamp), 1000)
self.assertEqual(
abs(ttl_messages[0].timestamp - ttl_messages[1].timestamp),
1000)