Message232187
> I think this patch will break the purpose of the test. We should fix the issue instead of hide it from tests.
The test ensures that json calls Py_EnterRecursiveCall() which relies on sys.getrecursionlimit(), see the commit below.
There is no generic fix for C stack overflow. The tes failed on Windows XP which is no more supported, I don't think that it's interesting to spend time on it.
changeset: 70021:9557e4eeb291
branch: 3.1
parent: 69997:b7abf0590e1c
user: Ezio Melotti <ezio.melotti@gmail.com>
date: Wed May 11 01:02:56 2011 +0300
files: Lib/json/tests/test_recursion.py Misc/NEWS Modules/_json.c
description:
#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. |
|
Date |
User |
Action |
Args |
2014-12-05 09:41:16 | vstinner | set | recipients:
+ vstinner, rhettinger, serhiy.storchaka |
2014-12-05 09:41:16 | vstinner | set | messageid: <1417772476.08.0.633036066292.issue22984@psf.upfronthosting.co.za> |
2014-12-05 09:41:16 | vstinner | link | issue22984 messages |
2014-12-05 09:41:15 | vstinner | create | |
|