summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_modulefinder.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-12-23 00:34:21 (GMT)
committerBrett Cannon <brett@python.org>2012-12-23 00:34:21 (GMT)
commit73b969ec70ff4d422bff34d63cfb220cfac96779 (patch)
treefce097ec73dc97d9a58e9f695245203849cd0165 /Lib/test/test_modulefinder.py
parentf03eee12b405347189df3915b6dbd845c2690b77 (diff)
downloadcpython-73b969ec70ff4d422bff34d63cfb220cfac96779.zip
cpython-73b969ec70ff4d422bff34d63cfb220cfac96779.tar.gz
cpython-73b969ec70ff4d422bff34d63cfb220cfac96779.tar.bz2
Issue #16752: Add a missing import to modulefinder.
Also fix Misc/ACKS to put part of it back in alphabetical order and remove some duplicate names. Patch by Berker Peksag.
Diffstat (limited to 'Lib/test/test_modulefinder.py')
-rw-r--r--Lib/test/test_modulefinder.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/test/test_modulefinder.py b/Lib/test/test_modulefinder.py
index c5fc320..53ea232 100644
--- a/Lib/test/test_modulefinder.py
+++ b/Lib/test/test_modulefinder.py
@@ -196,6 +196,18 @@ a/module.py
from . import bar
"""]
+relative_import_test_4 = [
+ "a.module",
+ ["a", "a.module"],
+ [],
+ [],
+ """\
+a/__init__.py
+ def foo(): pass
+a/module.py
+ from . import *
+"""]
+
def open_file(path):
dirname = os.path.dirname(path)
@@ -273,6 +285,9 @@ class ModuleFinderTest(unittest.TestCase):
def test_relative_imports_3(self):
self._do_test(relative_import_test_3)
+ def test_relative_imports_4(self):
+ self._do_test(relative_import_test_4)
+
def test_main():
support.run_unittest(ModuleFinderTest)