File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,8 @@ def is_cygwin_git(git_executable: PathLike) -> bool: ...
490
490
491
491
492
492
def is_cygwin_git (git_executable : Union [None , PathLike ]) -> bool :
493
- _logger .debug (f"sys.platform = { sys .platform } , git_executable = { git_executable } " )
493
+ # TODO: when py3.7 support is dropped, use the new interpolation f"{variable=}"
494
+ _logger .debug (f"sys.platform={ sys .platform !r} , git_executable={ git_executable !r} " )
494
495
if sys .platform != "cygwin" :
495
496
return False
496
497
elif git_executable is None :
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ class TestIsCygwinGit:
354
354
"""Tests for :func:`is_cygwin_git`"""
355
355
356
356
def test_on_path_executable (self ):
357
+ # Currently we assume tests run on Cygwin use Cygwin git. See #533 and #1455 for background.
357
358
if sys .platform == "cygwin" :
358
359
assert is_cygwin_git ("git" )
359
360
else :
You can’t perform that action at this time.
0 commit comments