Lib/test/test_import/data/circular_imports/singlephase.py
raw| 1 | """Circular import involving a single-phase-init extension. |
| 2 | |
| 3 | This module is imported from the _testsinglephase_circular module from |
| 4 | _testsinglephase, and imports that module again. |
| 5 | """ |
| 6 | |
| 7 | import importlib |
| 8 | import _testsinglephase |
| 9 | from test.test_import import import_extension_from_file |
| 10 | |
| 11 | name = '_testsinglephase_circular' |
| 12 | filename = _testsinglephase.__file__ |
| 13 | mod = import_extension_from_file(name, filename) |