There was an error while loading. Please reload this page.
1 parent f88e007 commit 7f29fd5Copy full SHA for 7f29fd5
1 file changed
testing/util.py
@@ -52,7 +52,11 @@ def broken_deep_listdir(): # pragma: no cover (platform specific)
52
os.listdir(str('\\\\?\\') + os.path.abspath(str('.')))
53
except OSError:
54
return True
55
- else:
+ try:
56
+ os.listdir(b'\\\\?\C:' + b'\\' * 300)
57
+ except TypeError:
58
+ return True
59
+ except OSError:
60
return False
61
62
0 commit comments