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

Function write_tests

Lib/test/bisect_cmd.py:31–35  ·  view source on GitHub ↗
(filename, tests)

Source from the content-addressed store, hash-verified

29
30
31def write_tests(filename, tests):
32 with open(filename, "w") as fp:
33 for name in tests:
34 print(name, file=fp)
35 fp.flush()
36
37
38def write_output(filename, tests):

Callers 2

write_outputFunction · 0.85
run_testsFunction · 0.85

Calls 2

openFunction · 0.50
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…