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

Function abs_module_name

Lib/test/libregrtest/utils.py:530–535  ·  view source on GitHub ↗
(test_name: TestName, test_dir: StrPath | None)

Source from the content-addressed store, hash-verified

528
529
530def abs_module_name(test_name: TestName, test_dir: StrPath | None) -> TestName:
531 if test_name.startswith('test.') or test_dir:
532 return test_name
533 else:
534 # Import it from the test package
535 return 'test.' + test_name
536
537
538# gh-90681: When rerunning tests, we might need to rerun the whole

Callers 2

list_casesFunction · 0.85
_load_run_testFunction · 0.85

Calls 1

startswithMethod · 0.45

Tested by 1

list_casesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…