Try to make a symlink from "path" to "to_path", skipping in case this platform does not support it or we don't have sufficient privileges (common on Windows).
(path, to_path)
| 606 | |
| 607 | |
| 608 | def attempt_symlink_to(path, to_path): |
| 609 | """Try to make a symlink from "path" to "to_path", skipping in case this platform |
| 610 | does not support it or we don't have sufficient privileges (common on Windows).""" |
| 611 | try: |
| 612 | Path(path).symlink_to(Path(to_path)) |
| 613 | except OSError: |
| 614 | pytest.skip("could not create symbolic link") |
| 615 | |
| 616 | |
| 617 | def test_basetemp_with_read_only_files(pytester: Pytester) -> None: |
no outgoing calls
no test coverage detected