tests: Add test for relative import without package context.
This commit is contained in:
parent
c4045f57e3
commit
9896314f5b
4
tests/import/rel_import_inv.py
Normal file
4
tests/import/rel_import_inv.py
Normal file
@ -0,0 +1,4 @@
|
||||
try:
|
||||
from . import foo
|
||||
except:
|
||||
print("Invalid relative import caught")
|
Loading…
Reference in New Issue
Block a user