(tmp_path: Path)
| 539 | |
| 540 | |
| 541 | def test_visit_ignores_errors(tmp_path: Path) -> None: |
| 542 | symlink_or_skip("recursive", tmp_path / "recursive") |
| 543 | tmp_path.joinpath("foo").write_bytes(b"") |
| 544 | tmp_path.joinpath("bar").write_bytes(b"") |
| 545 | |
| 546 | assert [ |
| 547 | entry.name for entry in visit(str(tmp_path), recurse=lambda entry: False) |
| 548 | ] == ["bar", "foo"] |
| 549 | |
| 550 | |
| 551 | @pytest.mark.skipif(not sys.platform.startswith("win"), reason="Windows only") |
nothing calls this directly
no test coverage detected