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

Unified Diff: Lib/test/test_import/__init__.py

Issue 23447: Import fails when doing a circular import involving an `import *`
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_import/data/circular_imports/wildcard.py ('k') | Python/ceval.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
index 14a688d..b8cbabc 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -1125,6 +1125,12 @@ class CircularImportTests(unittest.TestCase):
from test.test_import.data.circular_imports.subpkg import util
self.assertIs(util.util, rebinding.util)
+ def test_wildcard(self):
+ try:
+ import test.test_import.data.circular_imports.wildcard
+ except (ImportError, AttributeError):
+ self.fail('circular import with a wildcard failed')
+
if __name__ == '__main__':
# Test needs to be a package, so we can do relative imports.
« no previous file with comments | « Lib/test/test_import/data/circular_imports/wildcard.py ('k') | Python/ceval.c » ('j') | no next file with comments »

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