o \Õ“a!ã@sHddlZddlZddlmZddlZddlmZmZGdd„deƒZ dS)éN)ÚTestCase)Ú text_typeÚbc@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú TestErrorscCs\dddddœg}zt |¡Wntyt ¡d}Ynw| d¡| t|ƒd¡dS) NÚA)éég@zD tuple)ÚarÚc)ÚdéúExpected TypeErrorz5keys must be str, int, float, bool or None, not tuple©ÚjsonÚdumpsÚ TypeErrorÚsysÚexc_infoÚfailÚ assertEqualÚstr)ÚselfÚdataÚerr©rú>/usr/lib/python3/dist-packages/simplejson/tests/test_errors.pyÚtest_string_keys_errors ÿ  ÿz!TestErrors.test_string_keys_errorcCsLzt t¡Wntyt ¡d}Ynw| d¡| t|ƒd¡dS)Nr r z.Object of type module is not JSON serializabler©rrrrrÚtest_not_serializables ÿ  ÿz TestErrors.test_not_serializablecCszd}zt d¡Wntjyt ¡d}Ynw| d¡| |jd¡| |jd¡| |j d¡| |j d¡dS)Nú{} a br úExpected JSONDecodeErrorré) rÚloadsÚJSONDecodeErrorrrrrÚlinenoÚcolnoÚ endlinenoÚendcolnorrrrÚtest_decode_errorsÿ zTestErrors.test_decode_errorc Cspd}ttfD]/}z t |dƒ¡Wntjy!t ¡d}Ynw| d¡| |j d¡| |j d¡qdS)Nz {"asdf": "r r é ) rrrr"r#rrrrr$r%)rrÚtrrrÚtest_scan_error*s ÿ øzTestErrors.test_scan_errorcCs–d}zt d¡Wntjyt ¡d}Ynw| d¡t |¡}t |¡}| |j |j ¡| |j |j ¡| |j |j ¡| |j |j ¡dS)Nrr r ) rr"r#rrrÚpicklerrÚmsgÚdocÚposÚend)rrÚsÚerrrÚtest_error_is_pickable6sÿ   z!TestErrors.test_error_is_pickableN)Ú__name__Ú __module__Ú __qualname__rrr(r+r3rrrrrs    r) rr,ÚunittestrÚ simplejsonrÚsimplejson.compatrrrrrrrÚs