From 9896314f5b35b765b14ec85729a8c190fe787ba1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 27 Jun 2015 00:39:11 +0300 Subject: [PATCH] tests: Add test for relative import without package context. --- tests/import/rel_import_inv.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/import/rel_import_inv.py diff --git a/tests/import/rel_import_inv.py b/tests/import/rel_import_inv.py new file mode 100644 index 0000000000..1f3b35e8b8 --- /dev/null +++ b/tests/import/rel_import_inv.py @@ -0,0 +1,4 @@ +try: + from . import foo +except: + print("Invalid relative import caught")