-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Remove dependency on imp. #857
Conversation
This is now ready for review. |
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.
@@ -541,18 +541,6 @@ class Warning(Warning): | |||
self.assertEqual(ancestor.root().name, BUILTINS) | |||
self.assertRaises(StopIteration, partial(next, ancestors)) | |||
|
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.
I agree these test is not specially clear, but i do not understand why do you delete it. Can you explain a little bit more?
You're welcome! The If you think the deletion is a problem and can offer any clues about the intent of the test, I'd be happy to re-add it, or an equivalent. |
@pkolbus i investigated a bit this unit test. With current master (i.e using |
Thanks! |
Steps
Description
Removes all usage of the
imp
module, which has been deprecated since python 3.4.This is a continuation of @degustaf's excellent work in #686. I've rebased, addressed review comments from that PR, fixed pylint warnings, and implemented the solution for modutils as discussed in #686.
The test_qqch test is removed as it seems to behave differently depending on whether modutils imports anything from stdlib, and it’s not clear what the objective of that test actually is.
Type of Changes
Related Issue
Closes #594 and #681