-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-108303: Remove Lib/test/shadowed_super.py
#114372
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
Conversation
""", | ||
) | ||
with import_helper.ready_to_import(name="shadowed_super", source=source): | ||
import shadowed_super | ||
self.assertEqual(shadowed_super.C().method(), "truly super") |
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.
Would it be possible to unload the module explicitly after its usage? Use unload() of import_helper.
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.
LGTM
Move code into Lib/test/test_super.py. (cherry picked from commit 2ef520e) Co-authored-by: Nikita Sobolev <[email protected]>
Sorry, @sobolevn and @vstinner, I could not cleanly backport this to
|
GH-114433 is a backport of this pull request to the 3.12 branch. |
There is no need to backport to 3.11: Lib/test/shadowed_super.py doesn't exist in the 3.11 branch. |
Move code into Lib/test/test_super.py.
Move code into Lib/test/test_super.py.
This support file was only used in a single test, there's no point in using it, really.
It can be replaced with a simple script.