Skip to content

Commit 99ac37e

Browse files
committed
Request that groff not inject color ANSI codes to fix manpage test on fedora
1 parent 5b0ba86 commit 99ac37e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

snooty/builders/test_man.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
import os
23
import re
34
import stat
45
import subprocess
@@ -250,6 +251,7 @@ def test_manpage() -> None:
250251
["groff", "-T", "utf8", "-t", "-man"],
251252
encoding="utf-8",
252253
input=troff,
254+
env={"PATH": os.environ["PATH"], "GROFF_NO_SGR": "1"},
253255
)
254256
except FileNotFoundError:
255257
pytest.xfail("groff is not installed")

0 commit comments

Comments
 (0)