From c5b7075d60c83d6d3fa725ab9e68494736528f3e Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 1 Dec 2022 10:16:22 +0100 Subject: [PATCH] Python 3.11: use getfullargspec, not getargspec In Python 3.11, inspect.getargspec. We shall use getfullargspec from now on instead. This patch was added to Debian. See Debian bug: https: //bugs.debian.org/1025112 Change-Id: Ib7982470958377d9454446dab326aaa9e782ad69 --- os_win/tests/unit/test_utilsfactory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_win/tests/unit/test_utilsfactory.py b/os_win/tests/unit/test_utilsfactory.py index 2421a4ea..29bc75f3 100644 --- a/os_win/tests/unit/test_utilsfactory.py +++ b/os_win/tests/unit/test_utilsfactory.py @@ -186,8 +186,8 @@ class TestHyperVUtilsFactory(test_base.OsWinBaseTestCase): "public methods not listed in class %s" % baseclass) for name in sorted(implmethods.keys()): - baseargs = inspect.getargspec(basemethods[name]) - implargs = inspect.getargspec(implmethods[name]) + baseargs = inspect.getfullargspec(basemethods[name]) + implargs = inspect.getfullargspec(implmethods[name]) self.assertEqual(baseargs, implargs, "%s args don't match class %s" %