summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zipimport.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-06 23:18:00 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-06 23:18:00 (GMT)
commitd10d8ee2a1f0e4fd01816b5717eb5cc92684fb37 (patch)
treeed83b8f0c3b8304b89f5d2c7cc079cf7ada875e2 /Lib/test/test_zipimport.py
parent1a0ffe168af3e3e9ab692435ea1d3362329c5a2b (diff)
downloadcpython-d10d8ee2a1f0e4fd01816b5717eb5cc92684fb37.zip
cpython-d10d8ee2a1f0e4fd01816b5717eb5cc92684fb37.tar.gz
cpython-d10d8ee2a1f0e4fd01816b5717eb5cc92684fb37.tar.bz2
Fix various missing import/unbound name errors.
Diffstat (limited to 'Lib/test/test_zipimport.py')
-rw-r--r--Lib/test/test_zipimport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zipimport.py b/Lib/test/test_zipimport.py
index fa11d20..60a1452 100644
--- a/Lib/test/test_zipimport.py
+++ b/Lib/test/test_zipimport.py
@@ -230,7 +230,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
mod_path = packdir2 + TESTMOD
mod_name = module_path_to_dotted_name(mod_path)
- pkg = __import__(mod_name)
+ __import__(mod_name)
mod = sys.modules[mod_name]
self.assertEquals(zi.get_source(TESTPACK), None)
self.assertEquals(zi.get_source(mod_path), None)
@@ -274,7 +274,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
mod_path = TESTPACK2 + os.sep + TESTMOD
mod_name = module_path_to_dotted_name(mod_path)
- pkg = __import__(mod_name)
+ __import__(mod_name)
mod = sys.modules[mod_name]
self.assertEquals(zi.get_source(TESTPACK2), None)
self.assertEquals(zi.get_source(mod_path), None)