]> granicus.if.org Git - python/commitdiff
Use explicit relative import for an, ehm, relative import.
authorThomas Wouters <thomas@python.org>
Tue, 18 Apr 2006 21:41:36 +0000 (21:41 +0000)
committerThomas Wouters <thomas@python.org>
Tue, 18 Apr 2006 21:41:36 +0000 (21:41 +0000)
Lib/test/test_pkg.py

index 919a019cabe7a42263d36d3e950d2251a00e7906..c3657428895ffe12eb9da786c2b06036340798aa 100644 (file)
@@ -146,7 +146,7 @@ print "t4.sub.subsub.spam =", spam
     ("t5 __init__"+os.extsep+"py", "import t5.foo"),
     ("t5 string"+os.extsep+"py", "print __name__, 'loading'; spam = 1"),
     ("t5 foo"+os.extsep+"py",
-     "print __name__, 'loading'; import string; print string.spam"),
+     "print __name__, 'loading'; from . import string; print string.spam"),
      ],
 """
 import t5