summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-03-19 06:00:28 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-03-19 06:00:28 (GMT)
commit16b2e6bd7f1acc0ef7b5610acab71d639e5f193f (patch)
treea4c5e7cd9566ae76d2c46b3ac393258f2619de7a /Lib
parentab41b370a3eb1444b8ada38311a1bb498575a81c (diff)
downloadcpython-16b2e6bd7f1acc0ef7b5610acab71d639e5f193f.zip
cpython-16b2e6bd7f1acc0ef7b5610acab71d639e5f193f.tar.gz
cpython-16b2e6bd7f1acc0ef7b5610acab71d639e5f193f.tar.bz2
Import relimport using a relative import.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index dfaad29..ad6de5e 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -263,7 +263,7 @@ class RelativeImport(unittest.TestCase):
def test_relimport_star(self):
# This will import * from .test_import.
- import relimport
+ from . import relimport
self.assertTrue(hasattr(relimport, "RelativeImport"))
def test_main(verbose=None):