Closed
Description
Reported in discord, since #102018, the timing check was added to test_implied_dirs_performance
and this check is frequently failing (example):
ERROR: test_implied_dirs_performance (test.test_zipfile.test_path.TestPath.test_implied_dirs_performance)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\contextlib.py", line 80, in inner
with self._recreate_cm():
File "D:\a\cpython\cpython\Lib\test\test_zipfile\_context.py", line 30, in __exit__
raise DeadlineExceeded(duration, self.max_duration)
test.test_zipfile._context.DeadlineExceeded: (3.140999999999849, 3)
These failures aren't occurring on zipp, where the check has been running for years without fail.
Furthermore, the check is currently not capturing the failure case because the invocation fails to consume the generator:
cpython/Lib/test/test_zipfile/test_path.py
Line 336 in 9f3ecd1
That indicates that the flaky failures are due to the construction of test data:
cpython/Lib/test/test_zipfile/test_path.py
Line 335 in 9f3ecd1