Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit22d6284

Browse files
committed
don't use match-case, since it's a 3.10 feature
1 parent226f4ff commit22d6284

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
deftest_on_path_executable(self):
357-
matchsys.platform:
358-
case"cygwin":
359-
assertis_cygwin_git("git")
360-
case _:
361-
assertnotis_cygwin_git("git")
357+
ifsys.platform=="cygwin":
358+
assertis_cygwin_git("git")
359+
else:
360+
assertnotis_cygwin_git("git")
362361

363362
deftest_none_executable(self):
364363
assertnotis_cygwin_git(None)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp