-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Python3.11 tests #5196
Fix Python3.11 tests #5196
Conversation
CI MESSAGE: [11011153]: BUILD STARTED |
- moves to a newer PaddlePaddle version that supports Python3.11 - moves to a newer OpenCV version that supports Python3.11 - fixes deprecated the usage of inspect.getargspec on nose Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
f14eb51
to
c640905
Compare
CI MESSAGE: [11011153]: BUILD PASSED |
CI MESSAGE: [11016116]: BUILD STARTED |
@@ -45,7 +45,7 @@ def assert_stmt(expression1, expression2): | |||
""" | |||
if not callable(expression2): | |||
raise ValueError('{} must be a callable'.format(expression2)) | |||
args, _, keywords, _ = inspect.getargspec(expression2) | |||
args, _, keywords, _, _, _, _ = inspect.getfullargspec(expression2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
args, _, keywords, _, _, _, _ = inspect.getfullargspec(expression2) | |
args, _, keywords, *_ = inspect.getfullargspec(expression2) |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
if sys.version_info >= (3, 10) and not hasattr(collections, "Callable"): | ||
nose.case.collections = collections.abc | ||
nose.inspector.collections = collections.abc | ||
nose.loader.collections = collections.abc | ||
nose.suite.collections = collections.abc | ||
nose.plugins.attrib.collections = collections.abc | ||
if sys.version_info >= (3, 11): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Total nitpick: some empty lines to separate those rather unrelated workarounds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
CI MESSAGE: [11018266]: BUILD STARTED |
CI MESSAGE: [11016116]: BUILD PASSED |
CI MESSAGE: [11018266]: BUILD FAILED |
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A