summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-01 17:30:31 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-01 18:55:23 -0500
commit00d5eaafd13338bb2f3cb78a16b8f10f11ddeb01 (patch)
treedc1e2b22f183d6553500eb82c464b044fcc0dd02 /test
parent644d7e76104dc17241c5a50b4b006f6fa9bf052f (diff)
downloadsystemd-00d5eaafd13338bb2f3cb78a16b8f10f11ddeb01.tar.gz
python: adjust imports, indentation, unused variables following pylint advice
Diffstat (limited to 'test')
-rwxr-xr-xtest/networkd-test.py4
-rwxr-xr-xtest/sysv-generator-test.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py
index 3023cac97d..f15cc199a5 100755
--- a/test/networkd-test.py
+++ b/test/networkd-test.py
@@ -153,7 +153,7 @@ DHCP=%s
# check iface state and IP 6 address; FIXME: we need to wait a bit
# longer, as the iface is "configured" already with IPv4 *or*
# IPv6, but we want to wait for both
- for timeout in range(10):
+ for _ in range(10):
out = subprocess.check_output(['ip', 'a', 'show', 'dev', self.iface])
if b'state UP' in out and b'inet6 2600' in out and b'inet 192.168' in out:
break
@@ -558,7 +558,7 @@ exec $(systemctl cat systemd-networkd.service | sed -n '/^ExecStart=/ { s/^.*=//
'--service-type=notify', script])
# wait until devices got created
- for timeout in range(50):
+ for _ in range(50):
out = subprocess.check_output(['ip', 'a', 'show', 'dev', self.if_router])
if b'state UP' in out and b'scope global' in out:
break
diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py
index 50175485f7..16ea65690a 100755
--- a/test/sysv-generator-test.py
+++ b/test/sysv-generator-test.py
@@ -308,7 +308,7 @@ class SysvGeneratorTest(unittest.TestCase):
err, results = self.run_generator()
self.assertEqual(list(results), ['foo.service'])
self.assertEqual(os.readlink(os.path.join(self.out_dir, 'foo\\x2b.service')),
- 'foo.service')
+ 'foo.service')
self.assertNotIn('Overwriting', err)
def test_same_provides_in_multiple_scripts(self):