mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Revert "Merge pull request #799 from pre-commit/temporarily_skip_npm_windows"
This reverts commit063014ffd8, reversing changes made to259ef9e530.
This commit is contained in:
parent
99972df1da
commit
4f419fdaab
1 changed files with 10 additions and 1 deletions
|
|
@ -48,7 +48,16 @@ xfailif_windows_no_ruby = pytest.mark.xfail(
|
|||
def broken_deep_listdir(): # pragma: no cover (platform specific)
|
||||
if sys.platform != 'win32':
|
||||
return False
|
||||
return True # see #798
|
||||
try:
|
||||
os.listdir(str('\\\\?\\') + os.path.abspath(str('.')))
|
||||
except OSError:
|
||||
return True
|
||||
try:
|
||||
os.listdir(b'\\\\?\\C:' + b'\\' * 300)
|
||||
except TypeError:
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
|
||||
xfailif_broken_deep_listdir = pytest.mark.xfail(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue