MCPcopy Index your code
hub / github.com/pytest-dev/pytest-xdist / removepyc

Function removepyc

testing/test_looponfail.py:395–402  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

393
394
395def removepyc(path: Path) -> None:
396 # XXX damn those pyc files
397 pyc = path.with_suffix(".pyc")
398 if pyc.exists():
399 pyc.unlink()
400 c = path.parent / "__pycache__"
401 if c.exists():
402 shutil.rmtree(c)

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…