MCPcopy Index your code
hub / github.com/RustPython/RustPython / abs_module_name

Function abs_module_name

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

Source from the content-addressed store, hash-verified

515
516
517def abs_module_name(test_name: TestName, test_dir: StrPath | None) -> TestName:
518 if test_name.startswith('test.') or test_dir:
519 return test_name
520 else:
521 # Import it from the test package
522 return 'test.' + test_name
523
524
525# 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