summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-04-19 16:01:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-04-19 16:04:41 +1000
commit2d845789a9da48c16b8827e64593b042754f1d05 (patch)
tree1b87c844c5ba807a4ec7b4a8d92a42ea91cbeca8 /tools
parentc819b4f956646ed2e1f2abb6dac92ddf5316bd06 (diff)
tools: yaml verifier: fix some flake8 warnings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/libinput-record-verify-yaml.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/libinput-record-verify-yaml.py b/tools/libinput-record-verify-yaml.py
index f0661d89..97149082 100755
--- a/tools/libinput-record-verify-yaml.py
+++ b/tools/libinput-record-verify-yaml.py
@@ -82,7 +82,8 @@ class TestYaml(unittest.TestCase):
libinput = self.yaml['libinput']
version = libinput['version']
self.assertTrue(isinstance(version, str))
- self.assertGreaterEqual(parse_version(version), parse_version('1.10.0'))
+ self.assertGreaterEqual(parse_version(version),
+ parse_version('1.10.0'))
git = libinput['git']
self.assertTrue(isinstance(git, str))
self.assertNotEqual(git, 'unknown')
@@ -318,7 +319,7 @@ class TestYaml(unittest.TestCase):
def test_events_libinput_touch_down(self):
keys = ['type', 'time', 'slot', 'seat_slot', 'point', 'transformed']
for e in self.libinput_events('TOUCH_DOWN'):
- self.dict_key_crosscheck(e, keys);
+ self.dict_key_crosscheck(e, keys)
point = e['point']
self.assertTrue(isinstance(point, list))
self.assertEqual(len(point), 2)
@@ -338,7 +339,7 @@ class TestYaml(unittest.TestCase):
def test_events_libinput_touch_motion(self):
keys = ['type', 'time', 'slot', 'seat_slot', 'point', 'transformed']
for e in self.libinput_events('TOUCH_MOTION'):
- self.dict_key_crosscheck(e, keys);
+ self.dict_key_crosscheck(e, keys)
point = e['point']
self.assertTrue(isinstance(point, list))
self.assertEqual(len(point), 2)