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
This commit is contained in:
Thomas Goirand 2022-12-01 10:16:22 +01:00
parent 248d4f1e57
commit 318b1052d3
1 changed files with 2 additions and 2 deletions

View File

@ -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" %