From c5fa54a5b1e592c1bb742db8336bc01ee3440bb5 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 5 Sep 2024 16:11:48 +0200 Subject: [PATCH] Override LANGUAGE when running tests Apparently LANGUAGE has precedence over LC_ALL. By setting it to an empty string, LC_ALL takes precedence again, and we forcefully use the English translations. Signed-off-by: Carmen Bianca BAKKER --- tests/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/conftest.py b/tests/conftest.py index d9b14592..d7f2f6a2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -28,6 +28,7 @@ from jinja2 import Environment os.environ["LC_ALL"] = "C" +os.environ["LANGUAGE"] = "" # A trick that tries to import the installed version of reuse. If that doesn't # work, import from the src directory. If that also doesn't work (for some