From ec5a9a5f88226253bb52225cee27e3060121dd89 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie <alexandre.abadie@inria.fr> Date: Tue, 12 Dec 2017 15:14:47 +0100 Subject: [PATCH] tests: fix python style E502 issue: E502 the backslash is redundant between brackets --- tests/lwip/tests/01-run.py | 4 ++-- tests/posix_time/tests/01-run.py | 2 +- tests/xtimer_usleep/tests/01-run.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lwip/tests/01-run.py b/tests/lwip/tests/01-run.py index 39ca92636f..f4e218bad8 100755 --- a/tests/lwip/tests/01-run.py +++ b/tests/lwip/tests/01-run.py @@ -308,7 +308,7 @@ def test_triple_send(board_group, application, env=None): receiver.expect(u"00000000 DE AD BE EF") if __name__ == "__main__": - TestStrategy().execute([BoardGroup((Board("native", "tap0"), \ - Board("native", "tap1")))], \ + TestStrategy().execute([BoardGroup((Board("native", "tap0"), + Board("native", "tap1")))], [test_ipv6_send, test_udpv6_send, test_tcpv6_send, test_triple_send]) diff --git a/tests/posix_time/tests/01-run.py b/tests/posix_time/tests/01-run.py index 60ced1cfa6..036cf5026a 100755 --- a/tests/posix_time/tests/01-run.py +++ b/tests/posix_time/tests/01-run.py @@ -41,7 +41,7 @@ def testfunc(child): lower_bound = exp - (exp * EXTERNAL_JITTER) upper_bound = exp + (exp * EXTERNAL_JITTER) 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)) except InvalidTimeout as e: print(e) diff --git a/tests/xtimer_usleep/tests/01-run.py b/tests/xtimer_usleep/tests/01-run.py index 489cae3b91..3e41763a11 100755 --- a/tests/xtimer_usleep/tests/01-run.py +++ b/tests/xtimer_usleep/tests/01-run.py @@ -48,7 +48,7 @@ def testfunc(child): lower_bound = exp - (exp * EXTERNAL_JITTER) upper_bound = exp + (exp * EXTERNAL_JITTER) 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)) except InvalidTimeout as e: print(e) -- GitLab