Py 3.11: getargspec is removed
getargspec was deprecated in Python 3.0, and it's removed in Python 3.11 in the favor of getfullargspec. Change-Id: I0398849aaa692202fe414812eae22c04e8cafc16
This commit is contained in:
parent
f749fad388
commit
be888c8303
|
@ -72,7 +72,7 @@ class TestMockManager(base.MuranoTestCase):
|
|||
original_function.is_method = True
|
||||
original_function.name = FIXTURE_FUNC
|
||||
original_context = contexts.Context()
|
||||
p = mock.patch("inspect.getargspec", new=mock.MagicMock())
|
||||
p = mock.patch("inspect.getfullargspec", new=mock.MagicMock())
|
||||
p.start()
|
||||
original_context.register_function(original_function)
|
||||
mock_murano_class.context = original_context
|
||||
|
|
Loading…
Reference in New Issue