Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions testing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,7 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
def broken_deep_listdir(): # pragma: no cover (platform specific)
if sys.platform != 'win32':
return False
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
return True # see #798


xfailif_broken_deep_listdir = pytest.mark.xfail(
Expand Down