bpo-36375: PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules #12490
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This contains documentation updates,
runpy.py
implementation, two unit tests and a fix forLib/pdb.py
to accomodate new aliasing of__main__
as the module's canonical name.A run of "make test" on my El Capitan Mac here now shows the following failures:
Of these:
test_c_locale_coercion appears to be due to differences between my OS release and presumably more modern Darwin releases: various "utf-8" vs "ascii" mismatches in the output.
text_xmlrpc seems to run forever, here
the other tests fail for network based reasons.
WRT to a run against the master branch, the failure set is the same.
I cannot reproduce the hashlib based failures seen by Travis on my earlier PR. It will be interesting to see what Travis says now.
https://bugs.python.org/issue36375