diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_roots.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_roots.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/meshbay-node/tests/test_roots.py b/packages/meshbay-node/tests/test_roots.py index fc5bd64..1beb220 100644 --- a/packages/meshbay-node/tests/test_roots.py +++ b/packages/meshbay-node/tests/test_roots.py @@ -170,7 +170,10 @@ def test_a_symlink_out_of_the_root_is_refused(tmp_path): (tmp_path / "Media").mkdir() outside = tmp_path / "outside" outside.mkdir() - (tmp_path / "Media" / "escape").symlink_to(outside) + try: + (tmp_path / "Media" / "escape").symlink_to(outside) + except OSError as e: # Windows without Developer Mode / SeCreateSymbolicLink + pytest.skip(f"cannot create a symlink here: {e}") roots = RootSet.build([_spec(tmp_path / "Media")]) assert roots.resolve("Media/escape") is None |