Commit 67f3edc1 authored by Damien George's avatar Damien George
Browse files

tests/import: Add a test which uses ... in from-import statement.

parent 9af73bda
# This tests ... relative imports as used in pkg7
import pkg7.subpkg1.subpkg2.mod3
print("pkg __name__:", __name__)
print('mod1')
foo = 'mod1.foo'
print('mod2')
bar = 'mod2.bar'
print("pkg __name__:", __name__)
print("pkg __name__:", __name__)
from ... import mod1
from ...mod2 import bar
print(mod1.foo)
print(bar)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment