diff --git a/tests/parsers/test_parser.py b/tests/parsers/test_parser.py index 8e3684ea9..971855fb3 100644 --- a/tests/parsers/test_parser.py +++ b/tests/parsers/test_parser.py @@ -10,6 +10,7 @@ from xonsh.parser import Parser from xonsh.parsers.ast import AST, Call, Pass, With, is_const_str from xonsh.parsers.fstring_adaptor import FStringAdaptor from xonsh.pytest.tools import ( + ON_WINDOWS, VER_MAJOR_MINOR, nodes_equal, skip_if_pre_3_8, @@ -2652,7 +2653,14 @@ def test_echo_slash_question(check_xonsh_ast): @pytest.mark.parametrize( "case", [ - "[]", + pytest.param( + "[]", + marks=pytest.mark.xfail( + ON_WINDOWS, + reason="non-zero exit code being raised by brackets", + strict=True, + ), # TODO: fix this on a windows machine + ), "[[]]", "[a]", "[a][b]",