Skip to content

Commit 9896314

Browse files
committed
tests: Add test for relative import without package context.
1 parent c4045f5 commit 9896314

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/import/rel_import_inv.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
try:
2+
from . import foo
3+
except:
4+
print("Invalid relative import caught")

0 commit comments

Comments
 (0)