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:
Thomas Goirand 2022-12-12 10:18:17 +01:00 committed by Thomas Goirand
parent f749fad388
commit be888c8303
1 changed files with 1 additions and 1 deletions

View File

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