Skip to content

Commit

Permalink
Merge pull request #611 from akaihola/git-test-locale
Browse files Browse the repository at this point in the history
Ignore environment in Git tests
  • Loading branch information
akaihola authored Aug 8, 2024
2 parents 0321416 + a9a7a52 commit 1afd2d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darker/tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path
from subprocess import DEVNULL, check_call # nosec
from textwrap import dedent # nosec
from unittest.mock import patch
from unittest.mock import ANY, patch

import pytest

Expand Down Expand Up @@ -73,7 +73,7 @@ def test_git_exists_in_revision_git_call(retval, expect):
cwd=".",
check=False,
stderr=DEVNULL,
env={"LC_ALL": "C", "PATH": os.environ["PATH"]},
env=ANY,
)
assert result == expect

Expand Down

0 comments on commit 1afd2d3

Please sign in to comment.