Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/bootstrap_impls/cached_venv_dangling_symlink_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ def _load_bootstrap() -> dict:
return bootstrap


def _can_create_symlinks() -> bool:
with tempfile.TemporaryDirectory() as temp:
try:
os.symlink(temp, os.path.join(temp, "link"), target_is_directory=True)
except OSError:
return False
return True


class CachedVenvDanglingSymlinkTest(unittest.TestCase):
@unittest.skipUnless(_can_create_symlinks(), "can't create symlinks")
def test_replaces_dangling_package_link_before_creating_child_link(self) -> None:
self._test_replaces_dangling_package_link(symlinks_supported=True)

Expand Down
Loading