mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-111802: set a low recursion limit for test_bad_getattr()
in test.pickletester
(GH-113996)
This commit is contained in:
parent
b44b9d9900
commit
8aa126354d
2 changed files with 4 additions and 1 deletions
|
@ -2437,7 +2437,7 @@ class AbstractPickleTests:
|
|||
# Issue #3514: crash when there is an infinite loop in __getattr__
|
||||
x = BadGetattr()
|
||||
for proto in range(2):
|
||||
with support.infinite_recursion():
|
||||
with support.infinite_recursion(25):
|
||||
self.assertRaises(RuntimeError, self.dumps, x, proto)
|
||||
for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
|
||||
s = self.dumps(x, proto)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue