Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 063014f

Browse files
authored
Merge pull request #799 from pre-commit/temporarily_skip_npm_windows
Temporarily xfail node on windows
2 parents 259ef9e + 5b559db commit 063014f

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

testing/util.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,7 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
4848
def broken_deep_listdir(): # pragma: no cover (platform specific)
4949
if sys.platform != 'win32':
5050
return False
51-
try:
52-
os.listdir(str('\\\\?\\') + os.path.abspath(str('.')))
53-
except OSError:
54-
return True
55-
try:
56-
os.listdir(b'\\\\?\\C:' + b'\\' * 300)
57-
except TypeError:
58-
return True
59-
except OSError:
60-
return False
51+
return True # see #798
6152

6253

6354
xfailif_broken_deep_listdir = pytest.mark.xfail(

0 commit comments

Comments
 (0)