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
5 changes: 4 additions & 1 deletion experiments/shell/test_selection_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ def test_owned_clipboard_contention_preserves_write_and_read_failures(self):
with self.subTest(operation=operation):
out = self.out / ("occupied-" + operation)
with mock.patch.dict(os.environ, {"TERMFORGE_TEST_SELECTION_CLIPBOARD_HOLD": operation}):
with self.assertRaisesRegex(ValueError, "shell probe failed: OpenClipboard: 5"):
# Workspace scenarios prefix their failure with the scenario
# identity, so the message may carry that prefix (#73).
with self.assertRaisesRegex(
ValueError, "shell probe failed: (workspace-failure .*? what=)?OpenClipboard: 5"):
execute(self.exe, "ui-copy-bytes-system", out)
sample = json.loads((out / "sample.json").read_text(encoding="utf-8"))
self.assertEqual(sample["exit_code"], 2)
Expand Down
Loading