Skip to content

Commit

Permalink
Request that groff not inject color ANSI codes to fix manpage test on…
Browse files Browse the repository at this point in the history
… fedora
  • Loading branch information
i80and committed Jan 8, 2023
1 parent 5b0ba86 commit 99ac37e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snooty/builders/test_man.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io
import os
import re
import stat
import subprocess
Expand Down Expand Up @@ -250,6 +251,7 @@ def test_manpage() -> None:
["groff", "-T", "utf8", "-t", "-man"],
encoding="utf-8",
input=troff,
env={"PATH": os.environ["PATH"], "GROFF_NO_SGR": "1"},
)
except FileNotFoundError:
pytest.xfail("groff is not installed")
Expand Down

0 comments on commit 99ac37e

Please sign in to comment.