Skip to content
Merged
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: 8 additions & 2 deletions tests/test_superpowers_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ def test_pytest_after_edit_fails_closed_on_broken_source_symlink(self):
ws = Path(tmpdir)
log = ws / "pytest.log"
log.write_text("run\n")
(ws / "broken.py").symlink_to(ws / "missing.py")
try:
(ws / "broken.py").symlink_to(ws / "missing.py")
except OSError:
pytest.skip("symlinks unavailable")
assert _pytest_after_edit(log, ws) is False

@pytest.mark.skipif(os.name != "posix", reason="test executes POSIX pytest shims")
Expand Down Expand Up @@ -869,7 +872,10 @@ def test_symlinked_candidate_refused(self):
real = Path(tmpdir) / "real.md"
real.write_text("# x")
link = Path(tmpdir) / "link.md"
link.symlink_to(real)
try:
link.symlink_to(real)
except OSError:
pytest.skip("symlinks unavailable")
with pytest.raises(ValueError, match="must not be a symlink"):
SuperpowersEvaluator().evaluate(candidate_skill_path=str(link))

Expand Down
Loading