From 99ac37e0c49293642b7c46b59fb37d41d9e95f86 Mon Sep 17 00:00:00 2001 From: Heli Aldridge Date: Sun, 8 Jan 2023 18:10:43 -0500 Subject: [PATCH] Request that groff not inject color ANSI codes to fix manpage test on fedora --- snooty/builders/test_man.py | 2 ++ 1 file changed, 2 insertions(+) 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")