Skip to content

Commit

Permalink
Skip shlex related failing test on Windows
Browse files Browse the repository at this point in the history
See #456
  • Loading branch information
akaihola committed Jan 13, 2023
1 parent d5c15c9 commit de0d153
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/darker/tests/test_linting.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,18 @@ def test_require_rev2_worktree(rev2, expect):
@pytest.mark.kwparametrize(
dict(cmdline="echo", expect=["first.py the 2nd.py\n"]),
dict(cmdline="echo words before", expect=["words before first.py the 2nd.py\n"]),
dict(cmdline='echo "two spaces"', expect=["two spaces first.py the 2nd.py\n"]),
dict(
cmdline='echo "two spaces"',
expect=["two spaces first.py the 2nd.py\n"],
marks=[
pytest.mark.xfail(
reason=(
"Quotes not removed on Windows."
" See https://github.com/akaihola/darker/issues/456"
)
)
] if WINDOWS else [],
),
dict(cmdline="echo eat spaces", expect=["eat spaces first.py the 2nd.py\n"]),
)
def test_check_linter_output(cmdline, expect):
Expand Down

0 comments on commit de0d153

Please sign in to comment.