We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99972df commit 4f419fdCopy full SHA for 4f419fd
1 file changed
testing/util.py
@@ -48,7 +48,16 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
48
def broken_deep_listdir(): # pragma: no cover (platform specific)
49
if sys.platform != 'win32':
50
return False
51
- return True # see #798
+ try:
52
+ os.listdir(str('\\\\?\\') + os.path.abspath(str('.')))
53
+ except OSError:
54
+ return True
55
56
+ os.listdir(b'\\\\?\\C:' + b'\\' * 300)
57
+ except TypeError:
58
59
60
+ return False
61
62
63
xfailif_broken_deep_listdir = pytest.mark.xfail(
0 commit comments