Skip to content

Commit ee831ca

Browse files
committed
tests: Add another testcase for relative imports.
1 parent 9e6c829 commit ee831ca

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/import/import_pkg6.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This tests relative imports as used in pkg6
2+
import pkg6

tests/import/pkg6/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .x import *
2+
print('init')

tests/import/pkg6/x/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .y import *
2+
print('x')

tests/import/pkg6/x/y.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print('y')

0 commit comments

Comments
 (0)