Skip to content

Commit 22d6284

Browse files
committed
don't use match-case, since it's a 3.10 feature
1 parent 226f4ff commit 22d6284

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/test_util.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,10 @@ class TestIsCygwinGit:
354354
"""Tests for :func:`is_cygwin_git`"""
355355

356356
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")
357+
if sys.platform == "cygwin":
358+
assert is_cygwin_git("git")
359+
else:
360+
assert not is_cygwin_git("git")
362361

363362
def test_none_executable(self):
364363
assert not is_cygwin_git(None)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy