Skip to content

Commit 29f4f87

Browse files
committed
fix another test
1 parent d8e8576 commit 29f4f87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,12 @@ def test_run_with_existing_variable_not_overridden(tmp_path):
238238
def test_run_with_none_value(tmp_path):
239239
with pushd(tmp_path):
240240
(tmp_path / ".env").write_text("a=b\nc")
241+
if IS_WINDOWS:
242+
printenv_cmd = ["dotenv", "run", "cmd", "/c", "echo", "%a%"]
243+
else:
244+
printenv_cmd = ["dotenv", "run", "printenv", "a"]
241245

242-
result = run_command(printenv_cmd, "a")
246+
result = run_command(printenv_cmd)
243247

244248
assert result == "b\n"
245249

0 commit comments

Comments
 (0)