Skip to content

Commit

Permalink
Override LANGUAGE when running tests
Browse files Browse the repository at this point in the history
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 <carmenbianca@fsfe.org>
  • Loading branch information
carmenbianca committed Sep 5, 2024
1 parent 9e7c627 commit c5fa54a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5fa54a

Please sign in to comment.