summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-03-13 01:16:33 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-03-13 01:16:33 (GMT)
commita9719057a2ee1875c6334b1d5fbbf66cfc02ca78 (patch)
tree1e029118e53bd5ad5358ddd60fa40f67c0772aed /Lib
parent2b695a4678e184584472f3633a2b56c4f8fc64c5 (diff)
downloadcpython-a9719057a2ee1875c6334b1d5fbbf66cfc02ca78.zip
cpython-a9719057a2ee1875c6334b1d5fbbf66cfc02ca78.tar.gz
cpython-a9719057a2ee1875c6334b1d5fbbf66cfc02ca78.tar.bz2
#8942: add test for __path__ contents in zipimport tests
Patch by Tatiana Al-Chueyr.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_zipimport.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_zipimport.py b/Lib/test/test_zipimport.py
index 358910b..f7cb8b9 100644
--- a/Lib/test/test_zipimport.py
+++ b/Lib/test/test_zipimport.py
@@ -205,6 +205,10 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
mod = zi.load_module(TESTPACK)
self.assertEqual(zi.get_filename(TESTPACK), mod.__file__)
+ existing_pack_path = __import__(TESTPACK).__path__[0]
+ expected_path_path = os.path.join(TEMP_ZIP, TESTPACK)
+ self.assertEqual(existing_pack_path, expected_path_path)
+
self.assertEqual(zi.is_package(packdir + '__init__'), False)
self.assertEqual(zi.is_package(packdir + TESTPACK2), True)
self.assertEqual(zi.is_package(packdir2 + TESTMOD), False)