From 3c2f649060ad0d3873f5374cb600f0a8c6d06fb6 Mon Sep 17 00:00:00 2001 From: Anze Staric Date: Tue, 21 Mar 2023 14:09:40 +0100 Subject: [PATCH] skip new tests on windows --- tests/test_pipelines.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_pipelines.py b/tests/test_pipelines.py index 3973f5ae9..1a8ba6c73 100644 --- a/tests/test_pipelines.py +++ b/tests/test_pipelines.py @@ -4,10 +4,11 @@ import pytest import plumbum +from plumbum._testtools import skip_on_windows from plumbum.commands import BaseCommand -@pytest.mark.xfail(env.WIN, reason="TODO: only fixed on posix systems") +@skip_on_windows @pytest.mark.timeout(3) def test_draining_stderr(generate_cmd, process_cmd): stdout, stderr = get_output_with_iter_lines( @@ -20,7 +21,7 @@ def test_draining_stderr(generate_cmd, process_cmd): assert len(stdout) == 5000 -@pytest.mark.xfail(env.WIN, reason="TODO: only fixed on posix systems") +@skip_on_windows @pytest.mark.timeout(3) def test_draining_stderr_with_stderr_redirect(tmp_path, generate_cmd, process_cmd): stdout, stderr = get_output_with_iter_lines( @@ -33,7 +34,7 @@ def test_draining_stderr_with_stderr_redirect(tmp_path, generate_cmd, process_cm assert len(stdout) == 5000 -@pytest.mark.xfail(env.WIN, reason="TODO: only fixed on posix systems") +@skip_on_windows @pytest.mark.timeout(3) def test_draining_stderr_with_stdout_redirect(tmp_path, generate_cmd, process_cmd): stdout, stderr = get_output_with_iter_lines(