Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1919)

Delta Between Two Patch Sets: Lib/test/test_import/__init__.py

Issue 23447: Import fails when doing a circular import involving an `import *`
Left Patch Set: Created 3 years, 9 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_import/data/circular_imports/wildcard.py ('k') | Python/ceval.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 # We import importlib *ASAP* in order to test #15386 1 # We import importlib *ASAP* in order to test #15386
2 import importlib 2 import importlib
3 import importlib.util 3 import importlib.util
4 from importlib._bootstrap_external import _get_sourcefile 4 from importlib._bootstrap_external import _get_sourcefile
5 import builtins 5 import builtins
6 import marshal 6 import marshal
7 import os 7 import os
8 import platform 8 import platform
9 import py_compile 9 import py_compile
10 import random 10 import random
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 def test_wildcard(self): 1128 def test_wildcard(self):
1129 try: 1129 try:
1130 import test.test_import.data.circular_imports.wildcard 1130 import test.test_import.data.circular_imports.wildcard
1131 except (ImportError, AttributeError): 1131 except (ImportError, AttributeError):
1132 self.fail('circular import with a wildcard failed') 1132 self.fail('circular import with a wildcard failed')
1133 1133
1134 1134
1135 if __name__ == '__main__': 1135 if __name__ == '__main__':
1136 # Test needs to be a package, so we can do relative imports. 1136 # Test needs to be a package, so we can do relative imports.
1137 unittest.main() 1137 unittest.main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+