diff --git a/test/test_repo.py b/test/test_repo.py index e39aee05e..f853e2b36 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -1365,6 +1365,11 @@ def test_do_not_strip_newline_in_stdout(self, rw_dir): r.git.commit(message="init") self.assertEqual(r.git.show("HEAD:hello.txt", strip_newline_in_stdout=False), "hello\n") + @pytest.mark.xfail( + os.name == "nt", + reason=R"fatal: could not create leading directories of '--upload-pack=touch C:\Users\ek\AppData\Local\Temp\tmpnantqizc\pwn': Invalid argument", # noqa: E501 + raises=GitCommandError, + ) @with_rw_repo("HEAD") def test_clone_command_injection(self, rw_repo): with tempfile.TemporaryDirectory() as tdir: