Replace getargspec with getfullargspec

inspect.getargspec() is deprecated since py3

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec

Change-Id: I2ae460a7a7f01d7346d5e51ec6ccb44c22d0c53e
This commit is contained in:
likui 2021-05-10 18:09:17 +08:00
parent f6d147e031
commit 2c2a1f4de7

View File

@ -217,5 +217,5 @@ class CLITestV20ExtensionJSONChildResource(test_cli20.CLITestV20Base):
self.client.delete_parents_child,
self.client.create_parents_child)
for method in methods:
argspec = inspect.getargspec(method)
argspec = inspect.getfullargspec(method)
self.assertIn("parent_id", argspec.args)