Files
pyinstaller/buildtests/relimp/relimp1.py
T
htgoebel 8397e8149e Enhanced testcase for relative imports.
git-svn-id: http://svn.pyinstaller.org/trunk@524 8dd32b29-ccff-0310-8a9a-9233e24343b1
2008-08-05 09:05:56 +00:00

17 lines
391 B
Python

from __future__ import absolute_import
name = 'relimp.relimp1'
from . import relimp2 as upper
from . relimp import relimp2 as lower
assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'
if upper.__name__ == lower.__name__:
raise SystemExit("Imported the same module")
if upper.__file__ == lower.__file__:
raise SystemExit("Imported the same file")