Skip to content
Myr

Bring back skip for Windows due to invalid syntax

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Taylor Payne · committed by Taylor Payne · parent 1991d4c · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • tests:+4 added−0 removed

1 file+4 added−0 removed

modified:tests/test_types.py+4 added
1import os.path2import pathlib3import platform4import tempfile56import pytest7
226 unmodified lines
234 message = FileError(filename="\udcff").format_message()235 assert message == "Could not open file '�': unknown error"236237238@pytest.mark.skipif(239 platform.system() == "Windows", reason="Filepath syntax differences."240)241def test_invalid_path_with_esc_sequence():242 with pytest.raises(click.BadParameter) as exc_info:243 with tempfile.TemporaryDirectory(prefix="my\ndir") as tempdir:244 click.Path(dir_okay=False).convert(tempdir, None, None)
2 unmodified lines