| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/test/test_json/__pycache__/ |
Upload File : |
R
>lqj�) c �� � ] QH GsGs , QMQMQMQMQMQMQMQ MQ
MQMQMQ
MQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQMQ MQ!MQ"MQ#Ms]Q$]Q%-s Q& Q'2 s Q( Q)\\2 s Q* Q+\\2 sP! ),� )�PyTest�CTestz<"A JSON payload should be an object or array, not a string."z["Unclosed array"z%{unquoted_key: "keys must be quoted"}z["extra comma",]z["double extra comma",,]z[ , "<-- missing value"]z["Comma after the close"],z["Extra close"]]z{"Extra comma": true,}z:{"Extra value after close": true} "misplaced quoted value"z{"Illegal expression": 1 + 2}z{"Illegal invocation": alert()}z+{"Numbers cannot have leading zeroes": 013}z{"Numbers cannot be hex": 0x14}z"["Illegal backslash escape: \x15"]z[\naked]z"["Illegal backslash escape: \017"]z2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]z{"Missing colon" null}z{"Double colon":: null}z {"Comma instead of colon", null}z!["Colon instead of comma": false]z["Bad value", truth]z['single quote']z[" tab character in string "]z&["tab\ character\ in\ string\ "]z["line
break"]z["line\
break"]z[0e]z[0e+]z[0e+-1]z({"Comma instead if closing brace": true,z["mismatch"}z$["AZ control characters in string"]zwhy not have a string payload?z,spec doesn't specify any nesting limitationsc �L ` � \ sQ s]Ps n Q sQ sQ sQ sQ sQ s Q s
QsU sP! ) �TestFailc � � [ [ 2 F DV v qU]* oU[ 7 c U O U2 J, U O U2 U O QU QU8 02 JX P! S O
c Jp h 9 h)� zExpected failure for failz.json: )� enumerate�JSONDOCS�SKIPS�loads�fail�JSONDecodeError)�self�idx�docs & �-C:\Python315\\Lib\test\test_json\test_fail.py�
test_failures�TestFail.test_failuresQ sx � �!�(�+�H�C���'�C��e�|��
�
�3���
K��
�
�3�� � � �5�c�U�'�#��I�J� ,�� �'�'�
��
�s �A.�.B�>B�Bc � � Q ]Q]-oU O [ Q2 9^tt^ 2 U O U2 PPP2 P! ) % f h P! 9 h)�az5keys must be str, int, float, bool or None, not tuple)r � )�assertRaisesRegex� TypeError�dumps)r �datas & r �test_non_string_keys_dict�"TestFail.test_non_string_keys_dict^ sO � ��a��!�$��
�
#�
#�I�G�I� I��J�J�t��I� I� I� I�s �A�A �A c � � ] PHoU O [ Q2 9^tt^ 2 oU O U2 PPP2 U O WO
Q2 U O
[ 2 9^tt^ 2 oU O ]]]U,,2 PPP2 U O UO
O QQ,2 U O
[ 2 9^tt^ 2 oU O ]]]U112 PPP2 U O UO
O QQ,2 U O
[ 2 9^tt^ 2 oU O QQU--2 PPP2 U O UO
O Q Q
,2 P! ) % f h CKZ9 h ) % f h CK9 h ) % f h K�9 h ) % f h Ku9 h)r z.Object of type module is not JSON serializable� __notes__zwhen serializing list item 2zwhen serializing list item 1zwhen serializing tuple item 2zwhen serializing tuple item 1r �bzwhen serializing dict item 'b'zwhen serializing dict item 'a') �sysr r r �assertNotHasAttr� exception�assertRaises�assertEqualr )r r �cms & r �test_not_serializable�TestFail.test_not_serializabled sx � ��
�
#�
#�I�@�B� B�EG��J�J�s�O�B�
���b�l�l�K�8�
�
�
�y�
)�
)�R��J�J��A�q�#�;�'�(� *�������/�/�8�8�:� ;� �
�
�y�
)�
)�R��J�J��A�q�#�;�'�(� *�������/�/�9�9�;� <� �
�
�y�
)�
)�R��J�J��c�3�Z�(�)� *�������/�/�:�:�<� =�'B� B� B��
*�
)�
)�� *�
)�� *�
)�sG �F�7F�F/�?G�F �F �F, �$F, �/F? �8F? �G �G c �R � , QNoUQQ,*
oU, QN*
oSF D� v q#oU O U O 2 9^tt^ 2 oU O U2 PPP2 WO oU O UO
U2 U O UO U2 U O UO ]2 U O UO U]* 2 U O [ U2 QV4]* U1* 2 J� P! ) % f h K�9 h)� �%s: line 1 column %d (char %d)))r) �Expecting valuer )�[r+ r )z[42�Expecting ',' delimiter� )z[42,r+ � )z["�Unterminated string starting atr )z["spamr0 r )z["spam"r- � )z["spam",r+ � )�{�1Expecting property name enclosed in double quotesr )z{"r0 r )z{"spamr0 r )z{"spam"�Expecting ':' delimiterr1 )z{"spam":r+ r2 )z
{"spam":42r- �
)z{"spam":42,r4 � )�"r0 r )z"spamr0 r ))z"\u0041r0 r )z"\ud834r0 r )z
"\ud834\udd1er0 r )z
{"a": "\u0041r0 � �
r# r
r r"