mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fixed to the point that all unit tests pass again. (However, I get 4
"exception in thread" messages, one about a killed locker, and three assertions.) Details: test/test_dbshelve.py: - kill reference to InstanceType test/test_basics.py: - use // for int division - use 'in' instead of has_key dbshelve.py: - fix bug in previous has_key fix, use self.db.has_key instead of self.has_key dbtables.py: - use 'in' instead of has_key dbutils.py: - fix bug in previous has_key fix, test for 'max_retries', not 'max_tries'
This commit is contained in:
parent
f1a69c1666
commit
2043513bd5
5 changed files with 17 additions and 18 deletions
|
@ -55,7 +55,7 @@ def DeadlockWrap(function, *_args, **_kwargs):
|
|||
"""
|
||||
sleeptime = _deadlock_MinSleepTime
|
||||
max_retries = _kwargs.get('max_retries', -1)
|
||||
if 'max_tries' in _kwargs:
|
||||
if 'max_retries' in _kwargs:
|
||||
del _kwargs['max_retries']
|
||||
while True:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue