File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -935,11 +935,7 @@ def _obtain_lock_or_raise(self) -> None:
935935 )
936936
937937 try :
938- flags = os .O_WRONLY | os .O_CREAT | os .O_EXCL
939- if is_win :
940- flags |= os .O_SHORT_LIVED
941- fd = os .open (lock_file , flags , 0 )
942- os .close (fd )
938+ open (lock_file , mode = 'w' , closefd = True )
943939 except OSError as e :
944940 raise IOError (str (e )) from e
945941
Original file line number Diff line number Diff line change 1313import pickle
1414import sys
1515import tempfile
16- from unittest import mock , skipIf , SkipTest
16+ from unittest import mock , skipIf , SkipTest , skip
1717
1818import pytest
1919
@@ -251,6 +251,7 @@ def test_clone_from_with_path_contains_unicode(self):
251251 self .fail ("Raised UnicodeEncodeError" )
252252
253253 @with_rw_directory
254+ @skip ("the referenced repository was removed, and one needs to setup a new password controlled repo under the orgs control" )
254255 def test_leaking_password_in_clone_logs (self , rw_dir ):
255256 password = "fakepassword1234"
256257 try :
You can’t perform that action at this time.
0 commit comments