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:
parent
248d4f1e57
commit
318b1052d3
@ -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" %
|
||||
|
Loading…
x
Reference in New Issue
Block a user