()
| 411 | |
| 412 | |
| 413 | def test_commonpath() -> None: |
| 414 | path = Path("/foo/bar/baz/path") |
| 415 | subpath = path / "sampledir" |
| 416 | assert commonpath(path, subpath) == path |
| 417 | assert commonpath(subpath, path) == path |
| 418 | assert commonpath(Path(str(path) + "suffix"), path) == path.parent |
| 419 | assert commonpath(path, path.parent.parent) == path.parent.parent |
| 420 | |
| 421 | |
| 422 | def test_visit_ignores_errors(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected