(tmp_path: Path)
| 420 | |
| 421 | |
| 422 | def test_visit_ignores_errors(tmp_path: Path) -> None: |
| 423 | symlink_or_skip("recursive", tmp_path / "recursive") |
| 424 | tmp_path.joinpath("foo").write_bytes(b"") |
| 425 | tmp_path.joinpath("bar").write_bytes(b"") |
| 426 | |
| 427 | assert [ |
| 428 | entry.name for entry in visit(str(tmp_path), recurse=lambda entry: False) |
| 429 | ] == ["bar", "foo"] |
| 430 | |
| 431 | |
| 432 | @pytest.mark.skipif(not sys.platform.startswith("win"), reason="Windows only") |
nothing calls this directly
no test coverage detected