diff --git a/snooty/builders/test_man.py b/snooty/builders/test_man.py index 11bb79ee..9123d0f8 100644 --- a/snooty/builders/test_man.py +++ b/snooty/builders/test_man.py @@ -1,4 +1,5 @@ import io +import os import re import stat import subprocess @@ -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")