From 15f35e827e2e5c4e8c95d38701d478664d1fabc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Thu, 3 Nov 2022 22:44:24 +0545 Subject: [PATCH] fix windows --- tests/func/test_repo_index.py | 2 +- tests/func/test_run_single_stage.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/func/test_repo_index.py b/tests/func/test_repo_index.py index 66f5c0cf3..516cd37f1 100644 --- a/tests/func/test_repo_index.py +++ b/tests/func/test_repo_index.py @@ -221,7 +221,7 @@ def test_unique_identifier(tmp_dir, dvc, scm, run_copy): assert len(revs) + 1 == len(ids) possible_ids = { True: "dd9cf3a3dc2caac5835e64f258ac2d7b", - False: "8406970ad2fcafaa84d9310330a67576", + False: "b446f3cdc35539884dcc474d90ac6286", } assert set(ids) == {possible_ids[os.name == "posix"]} diff --git a/tests/func/test_run_single_stage.py b/tests/func/test_run_single_stage.py index f0a928d91..e42787c4c 100644 --- a/tests/func/test_run_single_stage.py +++ b/tests/func/test_run_single_stage.py @@ -708,7 +708,7 @@ def test_run_persist(tmp_dir, dvc, outs_command): "--always-changed", outs_command, "file", - "echo content >> file", + "echo content>>file", ] ) == 0 @@ -767,7 +767,7 @@ def test_rerun_with_same_outputs( "--single-stage", "--outs", "foo", - "echo foo > foo", + "echo foo>foo", ] ) == 0 @@ -781,7 +781,7 @@ def test_rerun_with_same_outputs( "foo", "--force", "--single-stage", - "echo bar >> foo", + "echo bar>>foo", ] ) == 0 @@ -879,7 +879,7 @@ def test_run_force_preserves_comments_and_meta(tmp_dir, dvc, run_copy): dvc.reproduce("bar.dvc") # CRLF on windows makes the generated file bigger in size - code_size = 143 if os.name == "nt" else 167 + code_size = 176 if os.name == "nt" else 167 assert (tmp_dir / "bar.dvc").read_text() == textwrap.dedent( f"""\ desc: top desc