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)
| 399 | |
| 400 | |
| 401 | def attempt_symlink_to(path, to_path): |
| 402 | """Try to make a symlink from "path" to "to_path", skipping in case this platform |
| 403 | does not support it or we don't have sufficient privileges (common on Windows).""" |
| 404 | try: |
| 405 | Path(path).symlink_to(Path(to_path)) |
| 406 | except OSError: |
| 407 | pytest.skip("could not create symbolic link") |
| 408 | |
| 409 | |
| 410 | def test_basetemp_with_read_only_files(pytester: Pytester) -> None: |
no outgoing calls
no test coverage detected