Skip to content

Commit

Permalink
tests: Add another testcase for relative imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Feb 16, 2015
1 parent 9e6c829 commit ee831ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/import/import_pkg6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This tests relative imports as used in pkg6
import pkg6
2 changes: 2 additions & 0 deletions tests/import/pkg6/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .x import *
print('init')
2 changes: 2 additions & 0 deletions tests/import/pkg6/x/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .y import *
print('x')
1 change: 1 addition & 0 deletions tests/import/pkg6/x/y.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print('y')

0 comments on commit ee831ca

Please sign in to comment.