Skip to content

Commit a72aa87

Browse files
committed
Update LANG, LANGUAGE and LC_ALL to use C
This is to make the output (sorting, dates, etc.) more deterministic. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 5a7e256 commit a72aa87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/test_cookiecutter_generation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def test_golden(
3232
"""Test generation of a new repo comparing it to a golden tree."""
3333
env = os.environ.copy()
3434
env.update(
35+
# Make sure file sorting, dates, etc. are deterministic.
36+
LANG="C",
37+
LANGUAGE="C",
38+
LC_ALL="C",
3539
# Signal to the cookiecutter template that it is running in a golden test, so
3640
# some flaky outputs can be disabled.
3741
GOLDEN_TEST="1",

0 commit comments

Comments
 (0)