MCPcopy Index your code
hub / github.com/python/mypy / copy_output_files

Function copy_output_files

mypyc/test/test_run.py:533–544  ·  view source on GitHub ↗
(target_dir: str)

Source from the content-addressed store, hash-verified

531
532
533def copy_output_files(target_dir: str) -> None:
534 try:
535 os.mkdir(target_dir)
536 except OSError:
537 # Only copy data for the first failure, to avoid excessive output in case
538 # many tests fail
539 return
540
541 for fnam in glob.glob("build/*.[ch]"):
542 shutil.copy(fnam, target_dir)
543
544 sys.stderr.write(f"\nGenerated files: {target_dir} (for first failure only)\n\n")

Callers 1

run_case_stepMethod · 0.85

Calls 2

copyMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…