Skip to content

Commit

Permalink
tests: assertEquals -> assertEqual
Browse files Browse the repository at this point in the history
The former is removed in Python 3.13

QubesOS/qubes-issues#9402
  • Loading branch information
marmarek committed Aug 21, 2024
1 parent 9c6d6bd commit 874b1fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qubesusbproxy/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def test_020_attach(self):
"Device connection failed")

usb_list = qubes.qubesutils.usb_list(self.qc, vm=self.backend)
self.assertEquals(usb_list[self.usbdev_name]['connected-to'],
self.assertEqual(usb_list[self.usbdev_name]['connected-to'],
self.frontend)

def test_030_detach(self):
Expand Down Expand Up @@ -320,13 +320,13 @@ def test_050_list_attached(self):
"Device connection failed")

usb_list = qubes.qubesutils.usb_list(self.qc, vm=self.backend)
self.assertEquals(usb_list[self.usbdev_name]['connected-to'],
self.assertEqual(usb_list[self.usbdev_name]['connected-to'],
self.frontend)

usb_list_front_post = qubes.qubesutils.usb_list(self.qc,
vm=self.frontend)

self.assertEquals(usb_list_front_pre, usb_list_front_post)
self.assertEqual(usb_list_front_pre, usb_list_front_post)

def test_060_auto_detach_on_remove(self):
self.frontend.start()
Expand Down Expand Up @@ -433,7 +433,7 @@ def test_020_attach(self):
wait=True), 0,
"Device connection failed")

self.assertEquals(usb_dev.attachment, self.frontend)
self.assertEqual(usb_dev.attachment, self.frontend)

def test_030_detach(self):
self.frontend.start()
Expand Down Expand Up @@ -483,11 +483,11 @@ def test_050_list_attached(self):
wait=True), 0,
"Device connection failed")

self.assertEquals(usb_list[self.usbdev_ident].attachment, self.frontend)
self.assertEqual(usb_list[self.usbdev_ident].attachment, self.frontend)

usb_list_front_post = list(self.frontend.devices['usb'])

self.assertEquals(usb_list_front_pre, usb_list_front_post)
self.assertEqual(usb_list_front_pre, usb_list_front_post)

def test_060_auto_detach_on_remove(self):
self.frontend.start()
Expand Down

0 comments on commit 874b1fa

Please sign in to comment.