Commit 51c90d04 authored by Peter Hutterer's avatar Peter Hutterer

test: fix depreciation warnings

test/test_device.py:434: DeprecationWarning: Please use assertEqual instead.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent ee699dac
......@@ -431,7 +431,7 @@ class TestDevice(unittest.TestCase):
fd = open(uinput.devnode, 'rb')
d = libevdev.Device(fd)
a2 = d.absinfo[libevdev.EV_ABS.ABS_X]
self.assertEquals(a, a2)
self.assertEqual(a, a2)
a2.resolution = 100
d.absinfo[libevdev.EV_ABS.ABS_X] = a2
d.sync_absinfo_to_kernel(libevdev.EV_ABS.ABS_X)
......@@ -441,9 +441,9 @@ class TestDevice(unittest.TestCase):
d = libevdev.Device(fd)
a3 = d.absinfo[libevdev.EV_ABS.ABS_X]
print(a3)
self.assertEquals(a2, a3)
self.assertEqual(a2, a3)
a3 = d.absinfo[libevdev.EV_ABS.ABS_Y]
self.assertEquals(a, a3)
self.assertEqual(a, a3)
@unittest.skipUnless(is_root(), 'Test requires root')
def test_uinput_empty(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment