diff --git a/oslo_versionedobjects/tests/test_fixture.py b/oslo_versionedobjects/tests/test_fixture.py index 5ab392d6..b22f4417 100644 --- a/oslo_versionedobjects/tests/test_fixture.py +++ b/oslo_versionedobjects/tests/test_fixture.py @@ -584,7 +584,7 @@ class TestObjectVersionChecker(test.TestCase): argspec = 'cubone' self._add_class(self.obj_classes, ExtraDataObj) - with mock.patch('inspect.getargspec') as mock_gas: + with mock.patch.object(fixture, 'get_method_spec') as mock_gas: mock_gas.return_value = argspec fp = self.ovc._get_fingerprint(ExtraDataObj.__name__, extra_data_func=get_data)