관리-도구
편집 파일: test_errors.cpython-311.pyc
� �܋f! � �V � d dl Z d dlZd dlmZ d dlZd dlmZmZ G d� de� � Z dS )� N)�TestCase)� text_type�bc �, � e Zd Zd� Zd� Zd� Zd� Zd� ZdS )� TestErrorsc � � ddddd�g} t j |� � | � d� � n)# t $ r t j � � d }Y nw xY w| � t |� � d� � d S ) N�A)� � g @zD tuple)�ar �c)�d�Expected TypeError� z5keys must be str, int, float, bool or None, not tuple��json�dumps�fail� TypeError�sys�exc_info�assertEqual�str)�self�data�errs �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/simplejson/tests/test_errors.py�test_string_keys_errorz!TestErrors.test_string_keys_error s� � ���S�)�D�D�E�� ,��J�t���� �I�I�*�+�+�+�+�� � $� $� $��,�.�.��#�C�C�C� $���� ����S���G� I� I� I� I� Is �4 �#A�Ac � � 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� � � ,��J�t���� �I�I�*�+�+�+�+�� � $� $� $��,�.�.��#�C�C�C� $���� ����S���@� B� B� B� B� Bs �1 �#A�Ac � � 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 b�Expected JSONDecodeErrorr r � )r �loadsr �JSONDecodeErrorr r r �lineno�colno� endlineno�endcolnor s r �test_decode_errorzTestErrors.test_decode_error s� � ��� 2��J�z�"�"�"� �I�I�0�1�1�1�1�� �#� $� $� $��,�.�.��#�C�C�C� $���� �����Q�'�'�'������A�&�&�&�������*�*�*������q�)�)�)�)�)� �. �(A�Ac �\ � 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&