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: str, to_path: str)
| 44 | |
| 45 | |
| 46 | def attempt_symlink_to(path: str, to_path: str) -> None: |
| 47 | """Try to make a symlink from "path" to "to_path", skipping in case this platform |
| 48 | does not support it or we don't have sufficient privileges (common on Windows).""" |
| 49 | try: |
| 50 | Path(path).symlink_to(Path(to_path)) |
| 51 | except OSError: |
| 52 | pytest.skip("could not create symbolic link") |
| 53 | |
| 54 | |
| 55 | def test_tmpdir_factory( |
no outgoing calls
no test coverage detected