From de0d1534038d7832ac8a6970905d795d6af7e11e Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Fri, 13 Jan 2023 08:52:15 +0200 Subject: [PATCH] Skip `shlex` related failing test on Windows See https://github.com/akaihola/darker/issues/456 --- src/darker/tests/test_linting.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/darker/tests/test_linting.py b/src/darker/tests/test_linting.py index e61c52e0a..869638299 100644 --- a/src/darker/tests/test_linting.py +++ b/src/darker/tests/test_linting.py @@ -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):