File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 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: ...
490490
491491
492492def  is_cygwin_git (git_executable : Union [None , PathLike ]) ->  bool :
493-     _logger .debug (f"sys.platform = { sys .platform } { 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 !r}  )
494495    if  sys .platform  !=  "cygwin" :
495496        return  False 
496497    elif  git_executable  is  None :
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ class TestIsCygwinGit:
354354    """Tests for :func:`is_cygwin_git`""" 
355355
356356    def  test_on_path_executable (self ):
357+         # Currently we assume tests run on Cygwin use Cygwin git. See #533 and #1455 for background. 
357358        if  sys .platform  ==  "cygwin" :
358359            assert  is_cygwin_git ("git" )
359360        else :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments