()
| 521 | |
| 522 | |
| 523 | def test_bestrelpath() -> None: |
| 524 | curdir = Path("/foo/bar/baz/path") |
| 525 | assert bestrelpath(curdir, curdir) == "." |
| 526 | assert bestrelpath(curdir, curdir / "hello" / "world") == "hello" + os.sep + "world" |
| 527 | assert bestrelpath(curdir, curdir.parent / "sister") == ".." + os.sep + "sister" |
| 528 | assert bestrelpath(curdir, curdir.parent) == ".." |
| 529 | assert bestrelpath(curdir, Path("hello")) == "hello" |
| 530 | |
| 531 | |
| 532 | def test_commonpath() -> None: |
nothing calls this directly
no test coverage detected