Skip to content
Snippets Groups Projects
Unverified Commit 991a514f authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #8245 from aabadie/pr/tests/python_E502

tests: fix python style E502 issue
parents 01a82c87 ec5a9a5f
No related branches found
No related tags found
No related merge requests found
...@@ -308,7 +308,7 @@ def test_triple_send(board_group, application, env=None): ...@@ -308,7 +308,7 @@ def test_triple_send(board_group, application, env=None):
receiver.expect(u"00000000 DE AD BE EF") receiver.expect(u"00000000 DE AD BE EF")
if __name__ == "__main__": if __name__ == "__main__":
TestStrategy().execute([BoardGroup((Board("native", "tap0"), \ TestStrategy().execute([BoardGroup((Board("native", "tap0"),
Board("native", "tap1")))], \ Board("native", "tap1")))],
[test_ipv6_send, test_udpv6_send, test_tcpv6_send, [test_ipv6_send, test_udpv6_send, test_tcpv6_send,
test_triple_send]) test_triple_send])
...@@ -41,7 +41,7 @@ def testfunc(child): ...@@ -41,7 +41,7 @@ def testfunc(child):
lower_bound = exp - (exp * EXTERNAL_JITTER) lower_bound = exp - (exp * EXTERNAL_JITTER)
upper_bound = exp + (exp * EXTERNAL_JITTER) upper_bound = exp + (exp * EXTERNAL_JITTER)
if not (lower_bound < testtime < upper_bound): if not (lower_bound < testtime < upper_bound):
raise InvalidTimeout("Host timer measured %d us (client measured %d us)" % \ raise InvalidTimeout("Host timer measured %d us (client measured %d us)" %
(testtime, exp)) (testtime, exp))
except InvalidTimeout as e: except InvalidTimeout as e:
print(e) print(e)
......
...@@ -48,7 +48,7 @@ def testfunc(child): ...@@ -48,7 +48,7 @@ def testfunc(child):
lower_bound = exp - (exp * EXTERNAL_JITTER) lower_bound = exp - (exp * EXTERNAL_JITTER)
upper_bound = exp + (exp * EXTERNAL_JITTER) upper_bound = exp + (exp * EXTERNAL_JITTER)
if not (lower_bound < testtime < upper_bound): if not (lower_bound < testtime < upper_bound):
raise InvalidTimeout("Host timer measured %d us (client measured %d us)" % \ raise InvalidTimeout("Host timer measured %d us (client measured %d us)" %
(testtime, exp)) (testtime, exp))
except InvalidTimeout as e: except InvalidTimeout as e:
print(e) print(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment