tests: Add another testcase for relative imports.

This commit is contained in:
Paul Sokolovsky 2015-02-16 12:10:14 +02:00
parent 9e6c82960e
commit ee831cafa9
4 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# This tests relative imports as used in pkg6
import pkg6

View File

@ -0,0 +1,2 @@
from .x import *
print('init')

View File

@ -0,0 +1,2 @@
from .y import *
print('x')

1
tests/import/pkg6/x/y.py Normal file
View File

@ -0,0 +1 @@
print('y')