Skip to content

Commit 41b3df3

Browse files
committed
fix windows env tests to skip bash
1 parent 11ba1ea commit 41b3df3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/commands/test_env.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ def test_delete_missing_env_errors(isolated_envs):
424424
)
425425
def test_bash_quoting_roundtrip(value):
426426
"""Eval the bash output and confirm the value comes back unchanged."""
427+
if sys.platform == "win32":
428+
pytest.skip("bash round-trip is not part of Windows shell coverage")
427429
line = f"export X={_quote_bash(value)}"
428430
out = subprocess.check_output(["bash", "-c", f'{line}; printf %s "$X"'])
429431
assert out.decode() == value
@@ -494,6 +496,8 @@ def test_export_dotenv_format(env_with_key):
494496

495497

496498
def test_export_bash_format_evaluates(env_with_key):
499+
if sys.platform == "win32":
500+
pytest.skip("bash export evaluation is not part of Windows shell coverage")
497501
runner = CliRunner()
498502
result = runner.invoke(
499503
env_group, ["export", env_with_key, "--format", "bash", "--show-key"]

0 commit comments

Comments
 (0)