()
| 530 | |
| 531 | |
| 532 | def test_commonpath() -> None: |
| 533 | path = Path("/foo/bar/baz/path") |
| 534 | subpath = path / "sampledir" |
| 535 | assert commonpath(path, subpath) == path |
| 536 | assert commonpath(subpath, path) == path |
| 537 | assert commonpath(Path(str(path) + "suffix"), path) == path.parent |
| 538 | assert commonpath(path, path.parent.parent) == path.parent.parent |
| 539 | |
| 540 | |
| 541 | def test_visit_ignores_errors(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected