Skip to content

Commit df0b00d

Browse files
committed
test(cli): make HTML open warning assertion robust across wrapped console output
1 parent 9a287be commit df0b00d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_cli_inprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ def _boom(*, path: Path) -> None:
10811081
assert html_out.exists()
10821082
out = capsys.readouterr().out
10831083
assert "Failed to open HTML report in browser" in out
1084-
assert "cannot open out.html" in out
1084+
assert re.search(r"cannot\s+open out\.html", out) is not None
10851085

10861086

10871087
def test_cli_timestamped_report_paths_apply_to_bare_report_flags(

0 commit comments

Comments
 (0)