From d8ec9ff05a707a01a1dd566682b3d7542f375cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 21 Aug 2024 12:55:05 +0200 Subject: [PATCH] tests: assertEquals -> assertEqual The former is removed in Python 3.13 QubesOS/qubes-issues#9402 --- qubesappmenus/tests_integ.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesappmenus/tests_integ.py b/qubesappmenus/tests_integ.py index 15e5fe8..6adf801 100644 --- a/qubesappmenus/tests_integ.py +++ b/qubesappmenus/tests_integ.py @@ -102,7 +102,7 @@ def test_000_created(self, vm=None): assert all(x.startswith(prefix) for x in appmenus) appmenus = [x[len(prefix):] for x in appmenus] assert all(x.endswith('.desktop') for x in appmenus) - self.assertEquals(set(whitelisted), set(appmenus)) + self.assertEqual(set(whitelisted), set(appmenus)) self.assertPathExists(self.appmenus.icons_dir(vm)) appicons = os.listdir(self.appmenus.icons_dir(vm)) whitelisted_icons = set() @@ -114,7 +114,7 @@ def test_000_created(self, vm=None): appmenu)))) if desktop.getIcon(): whitelisted_icons.add(os.path.basename(desktop.getIcon())) - self.assertEquals(set(whitelisted_icons), set(appicons)) + self.assertEqual(set(whitelisted_icons), set(appicons)) def test_001_created_registered(self): """Check whether appmenus was registered in desktop environment"""