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

Function setup_test_dir

Lib/test/libregrtest/setup.py:23–27  ·  view source on GitHub ↗
(testdir: str | None)

Source from the content-addressed store, hash-verified

21
22
23def setup_test_dir(testdir: str | None) -> None:
24 if testdir:
25 # Prepend test directory to sys.path, so runtest() will be able
26 # to locate tests
27 sys.path.insert(0, os.path.abspath(testdir))
28
29
30def setup_process() -> None:

Callers 2

mainMethod · 0.70
worker_processFunction · 0.70

Calls 2

insertMethod · 0.45
abspathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…