Lines Matching defs:file_name
417 file_name = os.path.join(dir_name, module_name) + os.extsep + "py"
418 compiled_name = file_name + ("c" if __debug__ else "o")
424 with open(self.file_name, "w") as f:
434 unlink(self.file_name)
445 self.assertEqual(mod.module_filename, self.file_name)
446 self.assertEqual(mod.code_filename, self.file_name)
447 self.assertEqual(mod.func_filename, self.file_name)
452 self.assertEqual(mod.code_filename, self.file_name)
453 file_name)
456 py_compile.compile(self.file_name, dfile="another_module.py")
459 self.assertEqual(mod.code_filename, self.file_name)
460 self.assertEqual(mod.func_filename, self.file_name)
464 py_compile.compile(self.file_name, dfile=target)
465 os.remove(self.file_name)
472 py_compile.compile(self.file_name)