We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226f4ff commit 22d6284Copy full SHA for 22d6284
1 file changed
test/test_util.py
@@ -354,11 +354,10 @@ class TestIsCygwinGit:
354
"""Tests for :func:`is_cygwin_git`"""
355
356
def test_on_path_executable(self):
357
- match sys.platform:
358
- case "cygwin":
359
- assert is_cygwin_git("git")
360
- case _:
361
- assert not is_cygwin_git("git")
+ if sys.platform == "cygwin":
+ assert is_cygwin_git("git")
+ else:
+ assert not is_cygwin_git("git")
362
363
def test_none_executable(self):
364
assert not is_cygwin_git(None)
0 commit comments