Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.versionedobjects
Commits
7e1f0082
Commit
7e1f0082
authored
Aug 10, 2021
by
Zuul
Committed by
Gerrit Code Review
Aug 10, 2021
Browse files
Merge "Do not patch inspect.argspec directly"
parents
59c0aadb
63cdc148
Changes
1
Hide whitespace changes
Inline
Side-by-side
oslo_versionedobjects/tests/test_fixture.py
View file @
7e1f0082
...
...
@@ -584,7 +584,7 @@ class TestObjectVersionChecker(test.TestCase):
argspec
=
'cubone'
self
.
_add_class
(
self
.
obj_classes
,
ExtraDataObj
)
with
mock
.
patch
(
'inspect.getarg
spec'
)
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment