circuitpython/tests/import/pkg7/subpkg1/subpkg2/mod3.py

12 lines
201 B
Python
Raw Normal View History

from ... import mod1
from ...mod2 import bar
print(mod1.foo)
print(bar)
# attempted relative import beyond top-level package
try:
from .... import mod1
except ValueError:
print("ValueError")