Browse Source

tests/import: Update comment now that uPy raises correct exception.

pull/2795/head
Damien George 7 years ago
parent
commit
409fc8f9c1
  1. 3
      tests/import/pkg7/subpkg1/subpkg2/mod3.py

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

@ -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:

Loading…
Cancel
Save