diff options
author | Brett Cannon <brett@python.org> | 2024-01-12 22:14:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 22:14:09 (GMT) |
commit | 8aa126354d93d7c928fb35b842cb3a4bd6e1881f (patch) | |
tree | 530420137b1a75bd3ae561886e99c385dcf1a1d5 /Lib/test/pickletester.py | |
parent | b44b9d99004f096619c962a8b42a19322f6a441b (diff) | |
download | cpython-8aa126354d93d7c928fb35b842cb3a4bd6e1881f.zip cpython-8aa126354d93d7c928fb35b842cb3a4bd6e1881f.tar.gz cpython-8aa126354d93d7c928fb35b842cb3a4bd6e1881f.tar.bz2 |
GH-111802: set a low recursion limit for `test_bad_getattr()` in `test.pickletester` (GH-113996)
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r-- | Lib/test/pickletester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 74b82ca..93e7dbb 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -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) |