tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
X\¬Qc@suddlmZmZdd d„ƒYZdefd„ƒYZdeefd„ƒYZdeefd    „ƒYZd
S( iÿÿÿÿ(tPyTesttCTesttJSONTestObjectcBseZRS((t__name__t
__module__(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyRst TestRecursioncBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs¶g}|j|ƒy|j|ƒWntk
r7nX|jdƒg}|g}|j|ƒy|j|ƒWntk
r…nX|jdƒg}||g}|j|ƒdS(Ns)didn't raise ValueError on list recursions5didn't raise ValueError on alternating list recursion(tappendtdumpst
ValueErrortfail(tselftxty((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyttest_listrecursion    s$           cCsmi}||d<y|j|ƒWntk
r4nX|jdƒi}i|d6|d6}|j|ƒdS(Nttests)didn't raise ValueError on dict recursiontatb(RRR    (R
R R ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyttest_dictrecursion s
  cCs}d|jjfd„ƒY}|ƒ}|j|jtƒdƒt|_y|jtƒWntk
rknX|jdƒdS(NtRecursiveJSONEncodercBseZeZd„ZRS(cSs3|tkr#|jrtgSdSntjj|ƒS(NR(Rtrecursetpyjsont JSONEncodertdefault(R
to((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyR1s
     (RRtFalseRR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyR/ss"JSONTestObject"s,didn't raise ValueError on default recursion(    tjsonRt assertEqualtencodeRtTrueRRR    (R
Rtenc((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyttest_defaultrecursion.s
        c Cs6|jtƒ"|jdddddƒWdQX|jtƒ"|jdddddƒWdQX|jtƒ"|jdddddƒWdQX|jtƒ"|jddd    d
dƒWdQX|jtƒ"|jddd d
dƒWdQX|jtƒ"|jd dd    d dƒWdQXdS(Ns{"a":i †t1t}s[1]t[t]u{"a":u1u}u[1]u[u](t assertRaisest RuntimeErrortloads(R
((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyt#test_highly_nested_objects_decodingDs#####cCs…gi}}x+tdƒD]}|gi|d6}}qW|jtƒ|j|ƒWdQX|jtƒ|j|ƒWdQXdS(Ni †tk(txrangeR#R$R(R
tltdR ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyt#test_highly_nested_objects_encodingVs cCsLd|jjfd„ƒY}|jtƒ|dtƒjdƒWdQXdS(NtEndlessJSONEncodercBseZd„ZRS(cSs|gS(s?If check_circular is False, this will keep adding another list.((R
R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyRcs(RRR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyR,bstcheck_circulary@(RRR#R$RR(R
R,((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyttest_endless_recursion`s(RRR RRR&R+R.(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyRs                     
tTestPyRecursioncBseZRS((RR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyR/kstTestCRecursioncBseZRS((RR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyR0lsN((t
json.testsRRRtobjectRR/R0(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/json/tests/test_recursion.pyt<module>sc