tests: Add test for relative import without package context.
This commit is contained in:
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")
|
||||||
Reference in New Issue
Block a user