Lines Matching refs:TESTMOD
52 TESTMOD = "ziptestmodule"
140 files = {TESTMOD + ".py": (NOW, test_src)}
141 self.doTest(".py", files, TESTMOD)
144 files = {TESTMOD + pyc_ext: (NOW, test_pyc)}
145 self.doTest(pyc_ext, files, TESTMOD)
148 files = {TESTMOD + ".py": (NOW, test_src),
149 TESTMOD + pyc_ext: (NOW, test_pyc)}
150 self.doTest(pyc_ext, files, TESTMOD)
153 files = {TESTMOD + ".py": (NOW, "")}
154 self.doTest(None, files, TESTMOD)
161 files = {TESTMOD + ".py": (NOW, test_src),
162 TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
163 self.doTest(".py", files, TESTMOD)
170 files = {TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
172 self.doTest(".py", files, TESTMOD)
183 files = {TESTMOD + ".py": (NOW, test_src),
184 TESTMOD + pyc_ext: (NOW, badtime_pyc)}
185 self.doTest(".py", files, TESTMOD)
190 packdir + TESTMOD + pyc_ext: (NOW, test_pyc)}
191 self.doTest(pyc_ext, files, TESTPACK, TESTMOD)
198 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
199 self.doTest(pyc_ext, files, TESTPACK, TESTPACK2, TESTMOD)
206 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
224 self.assertEqual(zi.is_package(packdir2 + TESTMOD), False)
226 mod_path = packdir2 + TESTMOD
250 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
268 self.assertEqual(zi.is_package(TESTPACK2 + os.sep + TESTMOD), False)
270 mod_path = TESTPACK2 + os.sep + TESTMOD
307 files = {TESTMOD + pyc_ext: (NOW, pyc),
309 self.doTest(pyc_ext, files, TESTMOD)
314 files = {TESTMOD + ".py": (NOW, test_src)}
315 self.doTest(".py", files, TESTMOD,
322 files = {TESTMOD + ".py": (NOW, test_src)}
323 self.doTest(".py", files, TESTMOD, call=self.assertModuleSource)
327 files = {TESTMOD + ".py": (NOW, test_src),
328 TESTMOD + pyc_ext: (NOW, pyc)}
329 self.doTest(pyc_ext, files, TESTMOD, call=self.assertModuleSource)
332 files = {TESTMOD + ".py": (NOW, test_src),
334 self.doTest(".py", files, TESTMOD, call=callback)
381 files = {TESTMOD + ".py": (NOW, raise_src)}
382 self.doTest(None, files, TESTMOD, call=self.doTraceback)
403 self.assertRaises(TypeError, zipimport.zipimporter, TESTMOD, kwd=None)
409 test_support.unlink(TESTMOD)
410 open(TESTMOD, 'w+').close()
411 self.assertZipFailure(TESTMOD)
414 test_support.unlink(TESTMOD)
415 fd = os.open(TESTMOD, os.O_CREAT, 000)
418 self.assertZipFailure(TESTMOD)
421 # delete TESTMOD, and later tests suffer bogus failures.
422 os.chmod(TESTMOD, 0666)
423 test_support.unlink(TESTMOD)
426 test_support.unlink(TESTMOD)
427 fp = open(TESTMOD, 'w+')
430 self.assertZipFailure(TESTMOD)
434 test_support.unlink(TESTMOD)
435 fp = open(TESTMOD, 'w+')
439 z = zipimport.zipimporter(TESTMOD)
469 test_support.unlink(TESTMOD)