forked from M-Labs/artiq
1
0
Fork 0

test/coredevice: PEP8

This commit is contained in:
Sebastien Bourdeauducq 2015-12-24 19:26:24 +08:00
parent bf1a3a5b8f
commit 7475b3813e
1 changed files with 5 additions and 3 deletions

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)