MCPcopy Index your code
hub / github.com/python/cpython / add_bad_source_file

Method add_bad_source_file

Lib/test/test_compileall.py:76–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 shutil.copyfile(self.source_path, self.source_path3)
75
76 def add_bad_source_file(self):
77 self.bad_source_path = os.path.join(self.directory, '_test_bad.py')
78 with open(self.bad_source_path, 'w', encoding="utf-8") as file:
79 file.write('x (\n')
80
81 def timestamp_metadata(self):
82 with open(self.bc_path, 'rb') as file:

Callers 3

test_compile_filesMethod · 0.95
test_compile_pathMethod · 0.95

Calls 3

openFunction · 0.50
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected