Lines Matching refs:TESTFN
14 from test.test_support import (unlink, TESTFN, unload, run_unittest, rmtree,
42 unload(TESTFN)
63 source = TESTFN + ext
64 pyo = TESTFN + os.extsep + "pyo"
66 pyc = TESTFN + "$py.class"
68 pyc = TESTFN + os.extsep + "pyc"
79 mod = __import__(TESTFN)
98 unload(TESTFN)
119 fname = TESTFN + os.extsep + "py"
123 __import__(TESTFN)
135 remove_files(TESTFN)
136 unload(TESTFN)
146 fname = TESTFN + os.extsep + "py"
155 m1 = __import__(TESTFN)
161 unload(TESTFN)
162 m2 = __import__(TESTFN)
166 unload(TESTFN)
167 m3 = __import__(TESTFN)
170 chmod_files(TESTFN)
171 remove_files(TESTFN)
172 unload(TESTFN)
222 source = TESTFN + os.extsep + "py"
231 self.assertRaises(ZeroDivisionError, __import__, TESTFN)
232 self.assertNotIn(TESTFN, sys.modules,
236 remove_files(TESTFN)
240 source = TESTFN + os.extsep + "py"
247 mod = __import__(TESTFN)
248 self.assertIn(TESTFN, sys.modules)
256 remove_files(TESTFN)
266 mod = sys.modules.get(TESTFN)
276 remove_files(TESTFN)
277 unload(TESTFN)
307 path = os.path.abspath(TESTFN)
315 testfn = script_helper.make_script('', TESTFN, textwrap.dedent("""\
328 source = TESTFN + '.py'
332 imp.find_module, TESTFN, ["."])
341 source = TESTFN + ".py"
353 __import__(TESTFN)
358 remove_files(TESTFN)
370 module = TESTFN + tail
401 dir_name = os.path.abspath(TESTFN)
441 dir_name = os.path.abspath(TESTFN)
518 path = TESTFN