tests/import: Update comment now that uPy raises correct exception.
This commit is contained in:
parent
3a9445c6b3
commit
409fc8f9c1
|
@ -3,8 +3,7 @@ from ...mod2 import bar
|
||||||
print(mod1.foo)
|
print(mod1.foo)
|
||||||
print(bar)
|
print(bar)
|
||||||
|
|
||||||
# when attempting relative import beyond top-level package uPy raises ImportError
|
# attempted relative import beyond top-level package
|
||||||
# whereas CPython raises a ValueError
|
|
||||||
try:
|
try:
|
||||||
from .... import mod1
|
from .... import mod1
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in New Issue