File tree 2 files changed +3
-6
lines changed
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:
935
935
)
936
936
937
937
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 )
943
939
except OSError as e :
944
940
raise IOError (str (e )) from e
945
941
Original file line number Diff line number Diff line change 13
13
import pickle
14
14
import sys
15
15
import tempfile
16
- from unittest import mock , skipIf , SkipTest
16
+ from unittest import mock , skipIf , SkipTest , skip
17
17
18
18
import pytest
19
19
@@ -251,6 +251,7 @@ def test_clone_from_with_path_contains_unicode(self):
251
251
self .fail ("Raised UnicodeEncodeError" )
252
252
253
253
@with_rw_directory
254
+ @skip ("the referenced repository was removed, and one needs to setup a new password controlled repo under the orgs control" )
254
255
def test_leaking_password_in_clone_logs (self , rw_dir ):
255
256
password = "fakepassword1234"
256
257
try :
You can’t perform that action at this time.
0 commit comments