fix windows

This commit is contained in:
Saugat Pachhai (सौगात)
2022-11-03 23:07:28 +05:45
committed by skshetry
parent 4d17c171f1
commit 15f35e827e
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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"]}
+4 -4
View File
@@ -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