From 2202b71f9937d5925bd3ee97371bed6af8c616ad Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 14 Nov 2019 10:57:39 +0100 Subject: [PATCH] flake8: fix PEP8 overidentation E127 --- dist/tools/pyterm/pyterm | 2 +- examples/suit_update/tests/01-run.py | 8 ++++---- tests/lwip/tests/01-run.py | 8 ++++---- tests/xtimer_periodic_wakeup/tests/01-run.py | 6 +++--- tests/xtimer_reset/tests/01-run.py | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/tools/pyterm/pyterm b/dist/tools/pyterm/pyterm index 85685518cd..146b59897a 100755 --- a/dist/tools/pyterm/pyterm +++ b/dist/tools/pyterm/pyterm @@ -274,7 +274,7 @@ class SerCmd(cmd.Cmd): """ self.logger.debug("processing line #%s#" % line) if (line.startswith("/")): - return "PYTERM_" + line[1:] + return "PYTERM_" + line[1:] return line def emptyline(self): diff --git a/examples/suit_update/tests/01-run.py b/examples/suit_update/tests/01-run.py index 2ef475dd96..5b2f14df78 100755 --- a/examples/suit_update/tests/01-run.py +++ b/examples/suit_update/tests/01-run.py @@ -65,10 +65,10 @@ def publish(server_dir, server_url, app_ver, latest_name=None): def wait_for_update(child): - return child.expect([r"riotboot_flashwrite: processing bytes (\d+)-(\d+)", - "riotboot_flashwrite: riotboot flashing " - "completed successfully"], - timeout=UPDATING_TIMEOUT) + return child.expect([r"riotboot_flashwrite: processing bytes (\d+)-(\d+)", + "riotboot_flashwrite: riotboot flashing " + "completed successfully"], + timeout=UPDATING_TIMEOUT) def get_ipv6_addr(child): diff --git a/tests/lwip/tests/01-run.py b/tests/lwip/tests/01-run.py index 6c7f62c8da..276a6cb211 100755 --- a/tests/lwip/tests/01-run.py +++ b/tests/lwip/tests/01-run.py @@ -82,7 +82,7 @@ class Board(object): pass if (name == "native") and (reset is None): - reset = _reset_native_execute + reset = _reset_native_execute self.name = name self.port = port @@ -232,13 +232,13 @@ def test_udpv6_send(board_group, application, env=None): receiver.sendline(u"udp server start %d" % port) # wait for neighbor discovery to be done time.sleep(5) - sender.sendline(u"udp send %s %d ab:cd:ef" % (receiver_ip, port)) - sender.expect_exact(u"Success: send 3 byte over UDP to [%s]:%d" % + sender.sendline(u"udp send %s %d ab:cd:ef" % (rerun + sender.expect_exact(u"Success: send 3 byte over run (receiver_ip, port)) receiver.expect(u"00000000 AB CD EF") -def test_tcpv6_send(board_group, application, env=None): +def test_tcpv6_send(board_group, application, env=None):run env_client = os.environ.copy() if env is not None: env_client.update(env) diff --git a/tests/xtimer_periodic_wakeup/tests/01-run.py b/tests/xtimer_periodic_wakeup/tests/01-run.py index 019be52c9a..88afa1825c 100755 --- a/tests/xtimer_periodic_wakeup/tests/01-run.py +++ b/tests/xtimer_periodic_wakeup/tests/01-run.py @@ -14,11 +14,11 @@ def testfunc(child): child.expect_exact("xtimer_periodic_wakeup test application.") for i in range(256): - child.expect(u"Testing interval \d+... \(now=\d+\)") + child.expect(r"Testing interval \d+... \(now=\d+\)") for i in range(256): - child.expect(u" +\d+ diff=\d+") + child.expect(r" +\d+ diff=\d+") - child.expect(u"Min/max error: \d+/\d+") + child.expect(r"Min/max error: \d+/\d+") child.expect_exact("Test complete.") diff --git a/tests/xtimer_reset/tests/01-run.py b/tests/xtimer_reset/tests/01-run.py index 285656b17b..44713b0ce8 100755 --- a/tests/xtimer_reset/tests/01-run.py +++ b/tests/xtimer_reset/tests/01-run.py @@ -14,9 +14,9 @@ def testfunc(child): child.expect_exact("This test tests re-setting of an already active timer.") child.expect_exact("It should print three times \"now=\", with " "values approximately 100ms (100000us) apart.") - child.expect(u"now=\d+") - child.expect(u"now=\d+") - child.expect(u"now=\d+") + child.expect(r"now=\d+") + child.expect(r"now=\d+") + child.expect(r"now=\d+") child.expect_exact("Test completed!")