mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
tests/import: Update comment now that uPy raises correct exception.
This commit is contained in:
@@ -3,8 +3,7 @@ from ...mod2 import bar
|
||||
print(mod1.foo)
|
||||
print(bar)
|
||||
|
||||
# when attempting relative import beyond top-level package uPy raises ImportError
|
||||
# whereas CPython raises a ValueError
|
||||
# attempted relative import beyond top-level package
|
||||
try:
|
||||
from .... import mod1
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user