[PATCH evemu 3/4] python/test: don't use 'e' for an fd and the event

Peter Hutterer peter.hutterer at who-t.net
Wed Nov 2 22:05:06 UTC 2016


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 python/evemu/tests/test_device.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/evemu/tests/test_device.py b/python/evemu/tests/test_device.py
index 8ad6f08..be1be81 100644
--- a/python/evemu/tests/test_device.py
+++ b/python/evemu/tests/test_device.py
@@ -142,8 +142,8 @@ class DeviceActionTestCase(evemu.testing.testcase.BaseTestCase):
     def test_read_events(self):
         device = evemu.Device(self.get_device_file(), create=False)
         events_file = self.get_events_file()
-        with open(events_file) as e:
-            events = [e for e in device.events(e)]
+        with open(events_file) as ef:
+            events = [e for e in device.events(ef)]
             self.assertTrue(len(events) > 1)
 
 class DevicePropertiesTestCase(evemu.testing.testcase.BaseTestCase):
-- 
2.9.3



More information about the Input-tools mailing list