From 874b1fa4fbfc1dadff00628d35d91d565f40e756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 21 Aug 2024 14:59:33 +0200 Subject: [PATCH] tests: assertEquals -> assertEqual The former is removed in Python 3.13 QubesOS/qubes-issues#9402 --- qubesusbproxy/tests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qubesusbproxy/tests.py b/qubesusbproxy/tests.py index 79edf44..413a62e 100644 --- a/qubesusbproxy/tests.py +++ b/qubesusbproxy/tests.py @@ -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): @@ -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() @@ -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() @@ -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()