(test_name: TestName, test_dir: StrPath | None)
| 528 | |
| 529 | |
| 530 | def 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 |
searching dependent graphs…