MCPcopy Index your code
hub / github.com/RustPython/RustPython / add_bad_source_file

Method add_bad_source_file

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

Source from the content-addressed store, hash-verified

70 shutil.copyfile(self.source_path, self.source_path3)
71
72 def add_bad_source_file(self):
73 self.bad_source_path = os.path.join(self.directory, '_test_bad.py')
74 with open(self.bad_source_path, 'w', encoding="utf-8") as file:
75 file.write('x (\n')
76
77 def timestamp_metadata(self):
78 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