bg!VddlZddlZddlmZddlZddlmZmZGddeZ dS)N)TestCase) text_typebc,eZdZdZdZdZdZdZdS) TestErrorscdddddg} tj||dn)#t$rt jd}YnwxYw|t|ddS) NA)g@zD tuple)arc)dExpected TypeErrorz5keys must be str, int, float, bool or None, not tuplejsondumpsfail TypeErrorsysexc_info assertEqualstr)selfdataerrs o/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib64/python3.11/site-packages/simplejson/tests/test_errors.pytest_string_keys_errorz!TestErrors.test_string_keys_errorsS)DDE , Jt    II* + + + + $ $ $,..#CCC $ SG I I I I Is4#AAc tjt|dn)#t$rt jd}YnwxYw|t|ddS)Nrrz.Object of type module is not JSON serializablerrrs rtest_not_serializablez TestErrors.test_not_serializables , Jt    II* + + + + $ $ $,..#CCC $ S@ B B B B Bs1#AAcd} tjd|dn.#tj$rt jd}YnwxYw||jd||jd||j d||j ddS)N{} a bExpected JSONDecodeErrorrr ) rloadsrJSONDecodeErrorrrrlinenocolno endlinenoendcolnor s rtest_decode_errorzTestErrors.test_decode_errors 2 Jz " " " II0 1 1 1 1# $ $ $,..#CCC $ Q''' A&&& *** q))))).(AAc\d}ttfD]} tj|d|dn.#tj$rt jd}YnwxYw||j d||j ddS)Nz {"asdf": "r$r ) rrrr&rr'rrrr(r))rrts rtest_scan_errorzTestErrors.test_scan_error*sQ , ,A 6 11\??+++ 45555' ( ( (lnnQ' (   SZ + + +   SY + + + + , ,sA(A21A2c d} tjd|dn.#tj$rt jd}YnwxYwt j|}t j|}||j |j ||j |j ||j |j ||j |j dS)Nr#r$r) rr&rr'rrpicklerrmsgdocposend)rrses rtest_error_is_pickablez!TestErrors.test_error_is_pickable6s 2 Jz " " " II0 1 1 1 1# $ $ $,..#CCC $ L   LOO !%((( !%((( !%((( !%(((((r-N)__name__ __module__ __qualname__rr!r,r1r:rrrse I I IBBB * * * , , ,)))))r?r) rr3unittestr simplejsonrsimplejson.compatrrrr>r?rrCs********=)=)=)=)=)=)=)=)=)=)r?