diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 02:44:47 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 02:55:18 +0300 |
| commit | 2ff3d9d0b2f53fe4a9e2fcb1ab2cff045211d78b (patch) | |
| tree | c731619ee85eb42d92f535ff8a980904101e1be0 /tests/basics/import-pkg4.py | |
| parent | 69f1867da59c812776db1fa9ef7bb13ba2c9674a (diff) | |
builtinimport: Set __path__ attribute ASAP as it's clear we have a package.
This helps with handling "recursive" imports in sane manner, for example
when foo/__init__.py has something like "from foo import submod".
Diffstat (limited to 'tests/basics/import-pkg4.py')
| -rw-r--r-- | tests/basics/import-pkg4.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/basics/import-pkg4.py b/tests/basics/import-pkg4.py new file mode 100644 index 000000000..90b6f2e0e --- /dev/null +++ b/tests/basics/import-pkg4.py @@ -0,0 +1,2 @@ +# Testing that "recursive" imports (pkg2/__init__.py imports from pkg2) work +import pkg2 |
