qBM V d dl Z d dlZd dlmZ d dlZd dlmZmZ G d de Z dS ) N)TestCase) text_typebc , e Zd Zd Zd Zd Zd Zd ZdS ) TestErrorsc dddddg} t j | | d n)# t $ r t j d }Y nw xY w| t | d d S ) NA) g @zD tuple)ar c)dExpected TypeError z5keys must be str, int, float, bool or None, not tuplejsondumpsfail TypeErrorsysexc_infoassertEqualstr)selfdataerrs ~/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/simplejson/tests/test_errors.pytest_string_keys_errorz!TestErrors.test_string_keys_error s S)DDE ,Jt II*++++ $ $ $,..#CCC $ SG I I I I Is 4 #AAc t j t | d n)# t $ r t j d }Y nw xY w| t | d d S )Nr r z.Object of type module is not JSON serializabler r r s r test_not_serializablez TestErrors.test_not_serializable s ,Jt II*++++ $ $ $,..#CCC $ S@ B B B B Bs 1 #AAc d } t j d | d n.# t j $ r t j d }Y nw xY w| |j d | |j d | |j d | |j d d S )N{} a bExpected JSONDecodeErrorr r )r loadsr JSONDecodeErrorr r r linenocolno endlinenoendcolnor s r test_decode_errorzTestErrors.test_decode_error s 2Jz""" II01111 # $ $ $,..#CCC $ Q'''A&&&***q))))) . (AAc \ d }t t fD ]} t j |d | d n.# t j $ r t j d }Y nw xY w| |j d | |j d d S )Nz {"asdf": "r$ r )r r r r&