[Python-checkins] python/dist/src/Lib/test test_zipimport.py,1.1.2.1,1.1.2.2
jvr@users.sourceforge.net
jvr@users.sourceforge.net
Fri, 03 Jan 2003 03:24:33 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv19816/Lib/test
Modified Files:
Tag: r23a1-branch
test_zipimport.py
Log Message:
Backported fix for bug #661136 to the 2.3a1 release branch.
Index: test_zipimport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zipimport.py,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** test_zipimport.py 2 Jan 2003 15:24:38 -0000 1.1.2.1
--- test_zipimport.py 3 Jan 2003 11:24:31 -0000 1.1.2.2
***************
*** 57,63 ****
mod = __import__(".".join(modules), globals(), locals(),
["__dummy__"])
! file = mod.get_file()
! self.assertEquals(file, os.path.join(TEMP_ZIP,
! os.sep.join(modules) + expected_ext))
finally:
z.close()
--- 57,64 ----
mod = __import__(".".join(modules), globals(), locals(),
["__dummy__"])
! if expected_ext:
! file = mod.get_file()
! self.assertEquals(file, os.path.join(TEMP_ZIP,
! os.sep.join(modules) + expected_ext))
finally:
z.close()
***************
*** 101,104 ****
--- 102,109 ----
TESTMOD + pyc_ext: (NOW, test_pyc)}
self.doTest(pyc_ext, files, TESTMOD)
+
+ def testEmptyPy(self):
+ files = {TESTMOD + ".py": (NOW, "")}
+ self.doTest(None, files, TESTMOD)
def testBadMagic(self):