Enhanced testcase for relative import.

git-svn-id: http://svn.pyinstaller.org/trunk@525 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
htgoebel
2008-08-05 17:25:44 +00:00
parent 8397e8149e
commit 3ba5b9f3a5
4 changed files with 12 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
name = 'relimp.B.C'
from . import D # Imports relimp.B.D
from .D import X # Imports relimp.B.D.X
from .. import E # Imports relimp.E
from ..F import G # Imports relimp.F.G
from ..F import H # Imports relimp.F.H
+3
View File
@@ -1 +1,4 @@
name = 'relimp.B.D'
class X:
name = 'relimp.B.D.X'
+7 -2
View File
@@ -12,6 +12,11 @@ assert relimp.name == 'relimp.relimp'
import relimp
assert relimp.name == 'relimp'
from .relimp import relimp2
assert relimp2.name == 'relimp.relimp2'
import relimp.relimp2
assert relimp.relimp2.name == 'relimp.relimp2'
# While this seams to work when running Python, it is wrong:
# .relimp should be a sibling of this package
#from .relimp import relimp2
#assert relimp2.name == 'relimp.relimp2'
+1
View File
@@ -0,0 +1 @@
name = 'relimp.relimp.relimp3'