• Home
  • Raw
  • Download

Lines Matching refs:TESTMOD

53 TESTMOD = "ziptestmodule"  variable
59 pyc_file = importlib.util.cache_from_source(TESTMOD + '.py')
178 files = {TESTMOD + ".py": (NOW, test_src)}
179 self.doTest(".py", files, TESTMOD)
182 files = {TESTMOD + pyc_ext: (NOW, test_pyc)}
183 self.doTest(pyc_ext, files, TESTMOD)
186 files = {TESTMOD + ".py": (NOW, test_src),
187 TESTMOD + pyc_ext: (NOW, test_pyc)}
188 self.doTest(pyc_ext, files, TESTMOD)
198 files = {TESTMOD + ".py": (NOW, "state = 'new'"),
199 TESTMOD + ".pyc": (NOW - 20, bytecode)}
202 self.doTest(None, files, TESTMOD, call=check)
205 files = {TESTMOD + ".py": (NOW, "")}
206 self.doTest(None, files, TESTMOD)
212 files = {TESTMOD + ".py": (NOW, test_src),
213 TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
214 self.doTest(".py", files, TESTMOD)
220 files = {TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
222 self.doTest(".py", files, TESTMOD)
233 files = {TESTMOD + ".py": (NOW, test_src),
234 TESTMOD + pyc_ext: (NOW, badtime_pyc)}
235 self.doTest(".py", files, TESTMOD)
240 packdir + TESTMOD + pyc_ext: (NOW, test_pyc)}
241 self.doTest(pyc_ext, files, TESTPACK, TESTMOD)
250 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
251 self.doTest(pyc_ext, files, TESTPACK, TESTPACK2, TESTMOD)
261 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
262 self.doTest(pyc_ext, files, TESTPACK, TESTPACK2, TESTMOD)
271 packdir + TESTMOD + pyc_ext: (NOW, test_pyc),
274 packdir3 + TESTMOD + pyc_ext: (NOW, test_pyc),
275 packdir2 + TESTMOD + '3' + pyc_ext: (NOW, test_pyc),
276 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
278 packdir + TESTMOD + '2' + pyc_ext: (NOW, test_pyc),
280 packdir2 + TESTMOD + '2' + pyc_ext: (NOW, test_pyc),
281 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
311 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD)))
315 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD + '2')))
328 mod = importlib.import_module('.'.join((subpkg, TESTMOD)))
333 mod = importlib.import_module('.'.join((subpkg, TESTMOD + '2')))
338 mod = importlib.import_module('.'.join((subpkg, TESTMOD + '3')))
348 packdir + TESTMOD + pyc_ext: (NOW, test_pyc),
351 packdir3 + TESTMOD + pyc_ext: (NOW, test_pyc),
352 packdir2 + TESTMOD + '3' + pyc_ext: (NOW, test_pyc),
353 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
358 packdir + TESTMOD + '2' + pyc_ext: (NOW, test_pyc),
360 packdir2 + TESTMOD + '2' + pyc_ext: (NOW, test_pyc),
361 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
387 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD)))
391 mod = importlib.import_module('.'.join((TESTPACK, TESTMOD + '2')))
403 mod = importlib.import_module('.'.join((subpkg, TESTMOD)))
407 mod = importlib.import_module('.'.join((subpkg, TESTMOD + '2')))
411 mod = importlib.import_module('.'.join((subpkg, TESTMOD + '3')))
419 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc),
451 self.assertEqual(zi.is_package(packdir2 + TESTMOD), False)
453 mod_path = packdir2 + TESTMOD
478 packdir2 + TESTMOD + pyc_ext: (NOW, test_pyc)}
499 zi.is_package(TESTPACK2 + os.sep + TESTMOD), False)
503 find_mod_dotted = zi2.find_module(TESTMOD)
506 self.assertFalse(zi2.is_package(TESTMOD))
507 load_mod = find_mod_dotted.load_module(TESTMOD)
509 find_mod_dotted.get_filename(TESTMOD), load_mod.__file__)
511 mod_path = TESTPACK2 + os.sep + TESTMOD
566 files = {TESTMOD + pyc_ext: (NOW, pyc),
568 self.doTest(pyc_ext, files, TESTMOD)
576 files = {TESTMOD + '.py': (NOW, src)}
579 mod = importlib.import_module(TESTMOD)
586 files = {TESTMOD + ".py": (NOW, test_src)}
587 self.doTest(".py", files, TESTMOD,
594 files = {TESTMOD + ".py": (NOW, test_src)}
595 self.doTest(".py", files, TESTMOD, call=self.assertModuleSource)
599 files = {TESTMOD + ".py": (NOW, test_src),
600 TESTMOD + pyc_ext: (NOW, pyc)}
601 self.doTest(pyc_ext, files, TESTMOD, call=self.assertModuleSource)
604 files = {TESTMOD + ".py": (NOW, test_src),
606 self.doTest(".py", files, TESTMOD, call=callback)
653 files = {TESTMOD + ".py": (NOW, raise_src)}
654 self.doTest(None, files, TESTMOD, call=self.doTraceback)
661 zinfo = ZipInfo(TESTMOD + ".py", time.localtime(NOW))
666 zipimport.zipimporter(filename).load_module(TESTMOD)
674 zinfo = ZipInfo(TESTMOD + ".py", time.localtime(NOW))
731 self.assertRaises(TypeError, zipimport.zipimporter, TESTMOD, kwd=None)
733 list(os.fsencode(TESTMOD)))
739 support.unlink(TESTMOD)
740 support.create_empty_file(TESTMOD)
741 self.assertZipFailure(TESTMOD)
744 support.unlink(TESTMOD)
745 fd = os.open(TESTMOD, os.O_CREAT, 000)
750 zipimport.zipimporter(TESTMOD)
754 os.chmod(TESTMOD, 0o666)
755 support.unlink(TESTMOD)
758 support.unlink(TESTMOD)
759 fp = open(TESTMOD, 'w+')
762 self.assertZipFailure(TESTMOD)
766 support.unlink(TESTMOD)
767 fp = open(TESTMOD, 'w+')
771 z = zipimport.zipimporter(TESTMOD)
801 support.unlink(TESTMOD)