From cd2c4d0cafb95db3bcb0ce23fdc0118fb8d2a8e4 Mon Sep 17 00:00:00 2001 From: Peter Rowlands Date: Thu, 23 Mar 2023 17:58:00 +0900 Subject: [PATCH] tests: remark flaky queue tests as xfail on windows --- tests/func/experiments/test_apply.py | 7 +++++++ tests/func/experiments/test_queue.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/tests/func/experiments/test_apply.py b/tests/func/experiments/test_apply.py index 1e5978736..c8945212b 100644 --- a/tests/func/experiments/test_apply.py +++ b/tests/func/experiments/test_apply.py @@ -1,3 +1,5 @@ +import os + import pytest from funcy import first @@ -26,6 +28,11 @@ def test_apply(tmp_dir, scm, dvc, exp_stage): assert (tmp_dir / "metrics.yaml").read_text().strip() == "foo: 3" +@pytest.mark.xfail( + os.name == "nt", + strict=False, + reason="https://github.com/iterative/dvc/issues/9143", +) def test_apply_failed(tmp_dir, scm, dvc, failed_exp_stage, session_queue): from dvc.exceptions import InvalidArgumentError diff --git a/tests/func/experiments/test_queue.py b/tests/func/experiments/test_queue.py index 64fe154db..283f157c9 100644 --- a/tests/func/experiments/test_queue.py +++ b/tests/func/experiments/test_queue.py @@ -1,3 +1,5 @@ +import os + import pytest from funcy import first @@ -35,6 +37,11 @@ def test_celery_logs( assert "failed to reproduce 'failed-copy-file'" in captured.out +@pytest.mark.xfail( + os.name == "nt", + strict=False, + reason="https://github.com/iterative/dvc/issues/9143", +) def test_queue_remove_done( dvc, exp_stage,