Skip to content

Commit

Permalink
Fix Windows tests, which fail only due to <100% coverage (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee authored Jan 16, 2023
1 parent aa26728 commit ea38855
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ def test_cli_tox_ini_not_file(tmp_path, capsys):
("flag", "error"),
[
(S_IREAD, "write"),
(S_IWRITE, "read"),
pytest.param(
S_IWRITE,
"read",
marks=pytest.mark.skipif(sys.platform == "win32", reason="On Windows, files cannot be write-only"),
),
],
)
@pytest.mark.skipif(sys.platform == "win32", reason="On Windows files cannot be read only, only folders")
def test_cli_tox_ini_permission_fail(tmp_path, capsys, flag, error):
path = tmp_path / "tox.ini"
path.write_text("")
Expand Down

0 comments on commit ea38855

Please sign in to comment.