mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Call busy_retry() and sleeping_retry() with error=True (#93871)
Tests no longer call busy_retry() and sleeping_retry() with error=False: raise an exception if the loop times out.
This commit is contained in:
parent
05b32c1c79
commit
484b40bf18
6 changed files with 9 additions and 18 deletions
|
@ -3613,11 +3613,10 @@ class ConfigDictTest(BaseTest):
|
|||
logging.warning('baz')
|
||||
|
||||
# Need to let the listener thread finish its work
|
||||
while support.sleeping_retry(support.LONG_TIMEOUT, error=False):
|
||||
while support.sleeping_retry(support.LONG_TIMEOUT,
|
||||
"queue not empty"):
|
||||
if qh.listener.queue.empty():
|
||||
break
|
||||
else:
|
||||
self.fail("queue not empty")
|
||||
|
||||
with open(fn, encoding='utf-8') as f:
|
||||
data = f.read().splitlines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue