Skip to content

Commit

Permalink
Fix test_render_pdf fails on illumos (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Jun 15, 2023
1 parent 35f885a commit b92d95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pipdeptree.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def test_render_dot(capsys):
def test_render_pdf(tmp_path: Path, mocker: MockerFixture) -> None:
output = p.dump_graphviz(t, output_format="pdf")
res = tmp_path / "file"
with pytest.raises(OSError, match="Bad file descriptor"): # noqa: PT012, SIM117 # because we reopen the file
with pytest.raises(OSError, match="Bad file"): # noqa: PT012, SIM117 # because we reopen the file
with res.open("wb") as buf:
mocker.patch.object(sys, "stdout", buf)
p.print_graphviz(output)
Expand Down

0 comments on commit b92d95e

Please sign in to comment.