HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/__pycache__/test_getargs2.cpython-311.pyc
�

��Vc����R�ddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	ej
d��ZddlmZm
Z
dZdZdd	lmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZej j!Z"e#d
��Z$e#d��Z%dZ&d
Z'dZ(Gd�d��Z)Gd�de*��Z+Gd�d��Z,Gd�d��Z-Gd�de*��Z.Gd�d��Z/Gd�de*��Z0Gd�d��Z1Gd�d ��Z2Gd!�d"e*��Z3Gd#�d$��Z4Gd%�d&e#��Z5Gd'�d(e#��Z6Gd)�d*��Z7Gd+�d,��Z8Gd-�d.e#��Z9Gd/�d0��Z:Gd1�d2e;��Z<Gd3�d4e;��Z=Gd5�d6��Z>Gd7�d8��Z?Gd9�d:e;��Z@Gd;�d<eA��ZBGd=�d>eC��ZDGd?�d@ejE��ZFGdA�dBejE��ZGGdC�dDejE��ZHGdE�dFejE��ZIGdG�dH��ZJGdI�dJejE��ZKGdK�dLejE��ZLGdM�dNejE��ZMGdO�dPejE��ZNGdQ�dRejE��ZOGdS�dTejE��ZPGdU�dVejE��ZQGdW�dXejE��ZRGdY�dZejE��ZSGd[�d\ejE��ZTGd]�d^ejE��ZUGd_�d`ejE��ZVeWdakrejX��dSdS)b�N)�support)�
import_helper)�warnings_helper�	_testcapi)�getargs_keywords�getargs_keyword_onlyi���lB$$HH�!`?)�	UCHAR_MAX�	USHRT_MAX�UINT_MAX�	ULONG_MAX�INT_MAX�INT_MIN�LONG_MIN�LONG_MAX�PY_SSIZE_T_MIN�PY_SSIZE_T_MAX�SHRT_MIN�SHRT_MAX�FLT_MIN�FLT_MAX�DBL_MIN�DBL_MAX�inf�nanl����l����l����c��eZdZd�ZdS)�Indexc��dS�N�c���selfs �&D:\Python311\Lib\test\test_getargs2.py�	__index__zIndex.__index__<����r�N��__name__�
__module__�__qualname__r$r r&r#rr;�#����������r&rc��eZdZd�ZdS)�IndexIntSubclassc��dSrr r!s r#r$zIndexIntSubclass.__index__@r%r&Nr'r r&r#r-r-?r+r&r-c��eZdZd�ZdS)�BadIndexc��dS�N��?r r!s r#r$zBadIndex.__index__D����sr&Nr'r r&r#r0r0C�#����������r&r0c��eZdZd�ZdS)�	BadIndex2c��dS�NTr r!s r#r$zBadIndex2.__index__H����tr&Nr'r r&r#r7r7G�#����������r&r7c��eZdZd�ZdS)�	BadIndex3c��dSr9r r!s r#r$zBadIndex3.__index__Lr:r&Nr'r r&r#r=r=Kr;r&r=c��eZdZd�ZdS)�Intc��dSrr r!s r#�__int__zInt.__int__Qr%r&N�r(r)r*rBr r&r#r@r@Pr+r&r@c��eZdZd�ZdS)�IntSubclassc��dSrr r!s r#rBzIntSubclass.__int__Ur%r&NrCr r&r#rErETr+r&rEc��eZdZd�ZdS)�BadIntc��dSr2r r!s r#rBzBadInt.__int__Yr4r&NrCr r&r#rHrHXr5r&rHc��eZdZd�ZdS)�BadInt2c��dSr9r r!s r#rBzBadInt2.__int__]r:r&NrCr r&r#rKrK\r;r&rKc��eZdZd�ZdS)�BadInt3c��dSr9r r!s r#rBzBadInt3.__int__ar:r&NrCr r&r#rNrN`r;r&rNc��eZdZd�ZdS)�Floatc��dS�N�@r r!s r#�	__float__zFloat.__float__fr:r&N�r(r)r*rUr r&r#rQrQer;r&rQc��eZdZdS)�
FloatSubclassN�r(r)r*r r&r#rXrXi��������Dr&rXc��eZdZd�ZdS)�FloatSubclass2c��dSrSr r!s r#rUzFloatSubclass2.__float__mr:r&NrVr r&r#r\r\lr;r&r\c��eZdZd�ZdS)�BadFloatc��dS)Ni�r r!s r#rUzBadFloat.__float__qr4r&NrVr r&r#r_r_pr5r&r_c��eZdZd�ZdS)�	BadFloat2c� �td��SrS�rXr!s r#rUzBadFloat2.__float__u����T�"�"�"r&NrVr r&r#rbrbt�#������#�#�#�#�#r&rbc��eZdZd�ZdS)�	BadFloat3c� �td��SrSrdr!s r#rUzBadFloat3.__float__yrer&NrVr r&r#rhrhxrfr&rhc��eZdZd�ZdS)�Complexc��dS�N�@�?r r!s r#�__complex__zComplex.__complex__~����yr&N�r(r)r*ror r&r#rkrk}�#����������r&rkc��eZdZdS)�ComplexSubclassNrYr r&r#rtrt�rZr&rtc��eZdZd�ZdS)�ComplexSubclass2c��dSrmr r!s r#rozComplexSubclass2.__complex__�rpr&Nrqr r&r#rvrv�rrr&rvc��eZdZd�ZdS)�
BadComplexc��dS)Ng�?r r!s r#rozBadComplex.__complex__�r:r&Nrqr r&r#ryry�r;r&ryc��eZdZd�ZdS)�BadComplex2c� �td��Srm�rtr!s r#rozBadComplex2.__complex__�����y�)�)�)r&Nrqr r&r#r|r|��#������*�*�*�*�*r&r|c��eZdZd�ZdS)�BadComplex3c� �td��Srmr~r!s r#rozBadComplex3.__complex__�rr&Nrqr r&r#r�r��r�r&r�c��eZdZdS)�
TupleSubclassNrYr r&r#r�r��rZr&r�c��eZdZdS)�DictSubclassNrYr r&r#r�r��rZr&r�c�,�eZdZd�Zd�Zd�Zd�Zd�ZdS)�Unsigned_TestCasec��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|d��|�d|d����|�t$|t$����|�t"|t$dz��|�d|d����|�t"|t&��dS)Nr)�	getargs_b���Q�	@r�����*)rr��assertRaises�	TypeError�assertEqualrr-r0�assertWarns�DeprecationWarningr7r=r@rErHrKrN�
OverflowErrorr	�
VERY_LARGE)r"r�s  r#�test_bzUnsigned_TestCase.test_b�s���'�'�'�'�'�'����)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1����-��B�7�7�7�����I�I�a�L�L�)�)�)�����I�I�i�$8�$8�9�9�9����-��I��M�B�B�B�����Y�Y�r�]�]�+�+�+����-��J�?�?�?�?�?��;,C3�3C7�:C7c��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|d����|�d|d����|�t"|t"����|�d|t"dz����|�d|d����|�t"t$z|t$����dS)Nr)�	getargs_Br�rr�r�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr	r�)r"r�s  r#�test_BzUnsigned_TestCase.test_B�s���'�'�'�'�'�'����)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1�����I�I�b�M�M�2�2�2�����I�I�a�L�L�)�)�)�����I�I�i�$8�$8�9�9�9�����I�I�i��k�2�2�3�3�3�����Y�Y�r�]�]�+�+�+�����Z�/���:�1F�1F�G�G�G�G�Gr�c��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|d����|�d|d����|�t"|t"����|�d|t"dz����|�d|d����|�t$t"z|t$����dS)Nr)�	getargs_Hr�rr�r�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr
r�)r"r�s  r#�test_HzUnsigned_TestCase.test_H�s���'�'�'�'�'�'����)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1�����I�I�b�M�M�2�2�2�����I�I�a�L�L�)�)�)�����I�I�i�$8�$8�9�9�9�����I�I�i��k�2�2�3�3�3�����Y�Y�r�]�]�+�+�+�����i�/���:�1F�1F�G�G�G�G�Gr�c��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|d����|�d|d����|�t"|t"����|�d|t"dz����|�d|d����|�t$t"z|t$����dS)Nr)�	getargs_Ir�rr�r�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNrr�)r"r�s  r#�test_IzUnsigned_TestCase.test_I�s���'�'�'�'�'�'����)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1�����9�9�R�=�=�1�1�1�����I�I�a�L�L�)�)�)�����9�9�X�#6�#6�7�7�7�����I�I�h�q�j�1�1�2�2�2�����Y�Y�r�]�]�+�+�+�����h�.�	�	�*�0E�0E�F�F�F�F�Fr�c�H�ddlm}|�t|d��|�t|t	����|�d|t
������|�t|t����|�t|t����|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t������|�t|d����|�d|d����|�t|t����|�d|tdz����|�d|d����|�t tz|t ����dS)Nr)�	getargs_kr�r�r�r�)rr�r�r�rr�r-r0r7r=r@rErHrKrNrr�)r"r�s  r#�test_kzUnsigned_TestCase.test_k�s2��'�'�'�'�'�'�	
���)�Y��5�5�5����)�Y����8�8�8�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;����)�Y�	���<�<�<�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1�����I�I�b�M�M�2�2�2�����I�I�a�L�L�)�)�)�����I�I�i�$8�$8�9�9�9�����I�I�i��k�2�2�3�3�3�����Y�Y�r�]�]�+�+�+�����i�/���:�1F�1F�G�G�G�G�Gr&N)r(r)r*r�r�r�r�r�r r&r#r�r��sp������@�@�@�0H�H�H�0H�H�H�2G�G�G�2H�H�H�H�Hr&r�c�&�eZdZd�Zd�Zd�Zd�ZdS)�Signed_TestCasec��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|t$dz
��|�t$|t$����|�t&|t&����|�t"|t&dz��|�d|d����|�t"|t(��dS)Nr)�	getargs_hr�rr�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr�rrr�)r"r�s  r#�test_hzSigned_TestCase.test_h���'�'�'�'�'�'����)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1����-��H�Q�J�?�?�?�����9�9�X�#6�#6�7�7�7�����9�9�X�#6�#6�7�7�7����-��H�Q�J�?�?�?�����Y�Y�r�]�]�+�+�+����-��J�?�?�?�?�?r�c��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|t$dz
��|�t$|t$����|�t&|t&����|�t"|t&dz��|�d|d����|�t"|t(��dS)Nr)�	getargs_ir�rr�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr�rr
r�)r"r�s  r#�test_izSigned_TestCase.test_i1s���'�'�'�'�'�'����)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1����-��G�A�I�>�>�>�����)�)�G�"4�"4�5�5�5�����)�)�G�"4�"4�5�5�5����-��G�A�I�>�>�>�����Y�Y�r�]�]�+�+�+����-��J�?�?�?�?�?r�c��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|t$dz
��|�t$|t$����|�t&|t&����|�t"|t&dz��|�d|d����|�t"|t(��dS)Nr)�	getargs_lr�rr�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr�rrr�)r"r�s  r#�test_lzSigned_TestCase.test_lIr�r�c��ddlm}|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|t$dz
��|�t$|t$����|�t&|t&����|�t"|t&dz��|�d|d����|�t"|t(��dS)Nr)�	getargs_nr�rr�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr�rrr�)r"r�s  r#�test_nzSigned_TestCase.test_nas���'�'�'�'�'�'�	
���)�Y��5�5�5�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1����-��N�1�4D�E�E�E�������>�)B�)B�C�C�C�������>�)B�)B�C�C�C����-��N�1�4D�E�E�E�����Y�Y�r�]�]�+�+�+����-��J�?�?�?�?�?r�N)r(r)r*r�r�r�r�r r&r#r�r�s^������@�@�@�0@�@�@�0@�@�@�0@�@�@�@�@r&r�c��eZdZd�Zd�ZdS)�LongLong_TestCasec���ddlm}|�t|d��|�t|d��|�d|t������|�d|t
������|�t|t����|�t��5|�d|t������ddd��n#1swxYwY|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t!������|�t"|t$dz
��|�t$|t$����|�t&|t&����|�t"|t&dz��|�d|d����|�t"|t(��dS)Nr)�	getargs_Lr��Hellorr�r�)rr�r�r�r�rr-r0r�r�r7r=r@rErHrKrNr��	LLONG_MIN�	LLONG_MAXr�)r"r�s  r#�test_LzLongLong_TestCase.test_L|s���'�'�'�'�'�'�	
���)�Y��5�5�5����)�Y��8�8�8�����Y�Y�u�w�w�/�/�0�0�0�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	8�	8����Q�	�	�)�+�+� 6� 6�7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1����-��I�a�K�@�@�@�����I�I�i�$8�$8�9�9�9�����I�I�i�$8�$8�9�9�9����-��I�a�K�@�@�@�����Y�Y�r�]�]�+�+�+����-��J�?�?�?�?�?s�,D�D�Dc��ddlm}|�t|d��|�t|t	����|�d|t
������|�t|t����|�t|t����|�d|t������|�t|t����|�d|t������|�t|t����|�t|t����|�d|t������|�t|t����|�d|d����|�d|tdz����|�d|d����|�t tz|t ����dS)Nr)�	getargs_Kr�r�r�)rr�r�r�rr�r-r0r7r=r@rErHrKrN�
ULLONG_MAXr�)r"r�s  r#�test_KzLongLong_TestCase.test_K�s��'�'�'�'�'�'����)�Y��5�5�5����)�Y����8�8�8�����I�I�&6�&8�&8�9�9�:�:�:����)�Y��
�
�;�;�;����)�Y�	���<�<�<�����I�I�i�k�k�2�2�3�3�3����)�Y����6�6�6�����I�I�k�m�m�4�4�5�5�5����)�Y����9�9�9����)�Y��	�	�:�:�:�����I�I�g�i�i�0�0�1�1�1�����Y�Y�z�%:�%:�;�;�;�����I�I�a�L�L�)�)�)�����I�I�j��l�3�3�4�4�4�����Y�Y�r�]�]�+�+�+�����j�0�)�)�J�2G�2G�H�H�H�H�Hr&N)r(r)r*r�r�r r&r#r�r�{s:������@�@�@�4I�I�I�I�Ir&r�c�F�eZdZd�Zd�Zejd���Zd�Zd�Z	dS)�Float_TestCasec��|�||��|�tjd|��tjd|����dS)Nr�)r��math�copysign)r"�actual�expecteds   r#�assertEqualWithSignz"Float_TestCase.assertEqualWithSign�sL�������*�*�*������q�&�1�1�4�=��H�3M�3M�N�N�N�N�Nr&c��ddlm}|�|d��d��|�|d��d��|�t|d��|�|t����d��|�|t
d����d��|�|td����d��|�t|t����|�	t��5|�|t����d��ddd��n#1swxYwY|�|td����d��|�|t����d��|�t|t����ttt t t"t"fD]!}|�||��|���"t t$krT|�|t$��t"��|�|t$��t"��tt&krI|�|t&��d	��|�|t&��d
��|�|d	��d	��|�|d
��d
��|t*��}|�||��dS)Nr��	getargs_frT��@�@�@��X@���)rr�r�r�r�rQrXr\r_r�r�rbrhrr@rr�INFrrr��NAN�assertNotEqual)r"r��x�rs    r#�test_fzFloat_TestCase.test_f�s5��'�'�'�'�'�'������4���$�/�/�/������1���s�+�+�+����)�Y��8�8�8������5�7�7�+�+�T�2�2�2������=��#5�#5�6�6��<�<�<������>�#�#6�#6�7�7��=�=�=����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	;�	;����Y�Y�y�{�{�3�3�T�:�:�:�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;����	;�	;�	;�	;������9�S�>�>�2�2�C�8�8�8������5�7�7�+�+�T�2�2�2����)�Y����6�6�6��G�8�W�w�h��c�T�B�	.�	.�A����Y�Y�q�\�\�1�-�-�-�-��W��	8����Y�Y�w�/�/��5�5�5����Y�Y��x�0�0�3�$�7�7�7��W��	@��$�$�Y�Y�w�%7�%7��=�=�=��$�$�Y�Y��x�%8�%8�$�?�?�?�� � ���3����5�5�5�� � ���4���$�7�7�7��I�c�N�N�����A�q�!�!�!�!�!��&,E�E"�%E"c��ddlm}|�|d��t��|�|d��t��dS)Nrr�gn���Ggn����)rr�r�r)r"r�s  r#�test_f_roundingzFloat_TestCase.test_f_rounding�s\��'�'�'�'�'�'������=�1�1�7�;�;�;������>�2�2�W�H�=�=�=�=�=r&c���ddlm}|�|d��d��|�|d��d��|�t|d��|�|t����d��|�|t
d����d��|�|td����d��|�t|t����|�	t��5|�|t����d��ddd��n#1swxYwY|�|td����d��|�|t����d��|�t|t����ttt t t"t"fD]!}|�||��|���"|�t$|d	t&z��|�t$|d
t&z��|�|d��d��|�|d��d��|t*��}|�||��dS)
Nr)�	getargs_drTr�r�r�r�r�r�r�r�r�)rr�r�r�r�rQrXr\r_r�r�rbrhrr@rrr�r��DBL_MAX_EXPr�r�r�)r"r�r�r�s    r#�test_dzFloat_TestCase.test_d�s���'�'�'�'�'�'������4���$�/�/�/������1���s�+�+�+����)�Y��8�8�8������5�7�7�+�+�T�2�2�2������=��#5�#5�6�6��<�<�<������>�#�#6�#6�7�7��=�=�=����)�Y��
�
�;�;�;�
�
�
�0�
1�
1�	;�	;����Y�Y�y�{�{�3�3�T�:�:�:�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;����	;�	;�	;�	;������9�S�>�>�2�2�C�8�8�8������5�7�7�+�+�T�2�2�2����)�Y����6�6�6��G�8�W�w�h��c�T�B�	.�	.�A����Y�Y�q�\�\�1�-�-�-�-����-��A�{�N�C�C�C����-��B��O�D�D�D�� � ���3����5�5�5�� � ���4���$�7�7�7��I�c�N�N�����A�q�!�!�!�!�!r�c�~�ddlm}|�|d��d��|�|d��d��|�|d��d��|�|t����d��|�|t	d����d��|�|td����d��|�t|t����|�	t��5|�|t����d��ddd��n#1swxYwY|�|td����d��|�|t����d	��|�t|t����ttt t t"t"fD]`}t%|d
��}|�||��|��t%d
|��}|�||��|���a|�|t%dd
����jd��|�|t%dd
����jd��|�|t%d
d����jd��|�|t%d
d����jd��dS)
Nr)�	getargs_DrnrTr�r�y@y@�?y�X@r3r�r�)rr�r�rkrtrvr�r�ryr�r�r|r�rr@rrr��complexr��real�imag)r"r�r��cs    r#�test_DzFloat_TestCase.test_D�s=��'�'�'�'�'�'������9�-�-�y�9�9�9������4���'�2�2�2������1���v�.�.�.������7�9�9�-�-�y�9�9�9������?�9�#=�#=�>�>�	�J�J�J������#3�I�#>�#>�?�?��K�K�K����)�Y�
���=�=�=�
�
�
�0�
1�
1�	B�	B����Y�Y�{�}�}�5�5�y�A�A�A�	B�	B�	B�	B�	B�	B�	B�	B�	B�	B�	B����	B�	B�	B�	B������;�y�#9�#9�:�:�I�F�F�F������5�7�7�+�+�W�5�5�5����)�Y����6�6�6��G�8�W�w�h��c�T�B�	.�	.�A���3���A����Y�Y�q�\�\�1�-�-�-���Q���A����Y�Y�q�\�\�1�-�-�-�-�� � ���7�3��+<�+<�!=�!=�!B�C�H�H�H�� � ���7�4��+=�+=�!>�!>�!C�T�J�J�J�� � ���7�3��+<�+<�!=�!=�!B�C�H�H�H�� � ���7�3��+=�+=�!>�!>�!C�T�J�J�J�J�Js�),E!�!E%�(E%N)
r(r)r*r�r�r�requires_IEEE_754r�r�r�r r&r#r�r��sw������O�O�O�"�"�"�8
��>�>���>�
"�"�"�0K�K�K�K�Kr&r�c��eZdZdZd�ZdS)�ParadoxzThis statement is false.c��t��N)�NotImplementedErrorr!s r#�__bool__zParadox.__bool__	s��!�!r&N)r(r)r*�__doc__r�r r&r#r�r�s)��������"�"�"�"�"r&r�c��eZdZd�ZdS)�Boolean_TestCasec���ddlm}|�d|d����|�d|d����|�d|d����|�d|d����|�d|d����|�d|d����|�d|d����|�d|g����|�d|i����|�d|d	����|�d|d����|�d|d
����|�d|d����|�d|d����|�d|d
����|�d|dg����|�d|ddi����|�d|tj����|�t|t����dS)Nr)�	getargs_pFr�y�r r�Tr3y�?r��r��)rr�r��unittest�TestCaser�r�r�)r"r�s  r#�test_pzBoolean_TestCase.test_p
sb��'�'�'�'�'�'�����I�I�e�,�,�-�-�-�����I�I�d�O�O�,�,�,�����I�I�a�L�L�)�)�)�����I�I�c�N�N�+�+�+�����I�I�b�M�M�*�*�*�����I�I�b�M�M�*�*�*�����I�I�b�M�M�*�*�*�����I�I�b�M�M�*�*�*�����I�I�b�M�M�*�*�*�����I�I�d�O�O�,�,�,�����I�I�a�L�L�)�)�)�����I�I�c�N�N�+�+�+�����I�I�b�M�M�*�*�*�����I�I�c�N�N�+�+�+�����I�I�d�O�O�,�,�,�����I�I�q�c�N�N�+�+�+�����I�I�q��e�,�,�-�-�-�����I�I�h�&7�8�8�9�9�9����-�y�'�)�)�D�D�D�D�Dr&N)r(r)r*r�r r&r#r�r�s(������E�E�E�E�Er&r�c��eZdZd�Zd�ZdS)�Tuple_TestCasec��ddlm}|dd��}|�|d��|�t	|��t
��|dgd�R�}|�|d��|�t	|��t
��|ddg�}|�|d��|�t	|��t
��|t
ddg���}|�|d��|�t	|��t
��|��}|�|d��|�t	|��t
t	d��f��|d	�}|�|d��|�t	|��t
t	d��f��dS)
Nr)�get_argsr�r��r�r��r���r�r�r�)r Nr )rr�r��assertIs�type�tupler��assertIn)r"r��rets   r#�	test_argszTuple_TestCase.test_args's���&�&�&�&�&�&��h�q�!�n�n������f�%�%�%��
�
�d�3�i�i��'�'�'��h�q�"�6�"�"�"������i�(�(�(��
�
�d�3�i�i��'�'�'��h��A��������f�%�%�%��
�
�d�3�i�i��'�'�'��h�
�q�!�f�-�-�.������f�%�%�%��
�
�d�3�i�i��'�'�'��h�j�j���
�
�c�:�&�&�&��
�
�d�3�i�i�%��d���!4�5�5�5��h��m���
�
�c�:�&�&�&��
�
�d�3�i�i�%��d���!4�5�5�5�5�5r&c��ddlm}|dd��}|�|d��Gd�d��}|�t|d|����dS)Nr)�
getargs_tupler�r�r�c��eZdZd�Zd�ZdS)�&Tuple_TestCase.test_tuple.<locals>.seqc��dS)Nr�r r!s r#�__len__z.Tuple_TestCase.test_tuple.<locals>.seq.__len__Js���qr&c��t�r�)�
ValueError)r"�ns  r#�__getitem__z2Tuple_TestCase.test_tuple.<locals>.seq.__getitem__Ls�� � r&N)r(r)r*rrr r&r#�seqr	Is2������
�
�
�
!�
!�
!�
!�
!r&r)rrr�r�r�)r"rrrs    r#�
test_tuplezTuple_TestCase.test_tupleBs���+�+�+�+�+�+��m�A�v�&�&������g�&�&�&�	!�	!�	!�	!�	!�	!�	!�	!�
	
���)�]�A�s�s�u�u�=�=�=�=�=r&N)r(r)r*rrr r&r#r�r�&s2������6�6�6�6>�>�>�>�>r&r�c�D�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
S)�Keywords_TestCasec	�^�ddlm}|dd���}|�|ddd���|�t	|��t
��|d
ddiddd���}|�|dddd	���|�t	|��t
��|d
it
ddd�����}|�|ddd���|�t	|��t
��|��}|�|idf��|�t	|��t
t	d��f��|d
ii��}|�|idf��|�t	|��t
t	d��f��dS)Nr)�
get_kwargsr�r���a�brr�)rr�)rrr�r )rrr�rr�dictr�r)r"rrs   r#�test_kwargszKeywords_TestCase.test_kwargsQs���(�(�(�(�(�(��j�1��"�"�"������A�A�.�.�/�/�/��
�
�d�3�i�i��&�&�&��j�1�1�1�1�a�a� 0� 0�1�1������A�A�A�6�6�7�7�7��
�
�d�3�i�i��&�&�&��j�:�:�<�a�a�(8�(8�9�9�:�:������A�A�.�.�/�/�/��
�
�d�3�i�i��&�&�&��j�l�l���
�
�c�B��:�&�&�&��
�
�d�3�i�i�$��T�
�
�!3�4�4�4��j���2�����
�
�c�B��:�&�&�&��
�
�d�3�i�i�$��T�
�
�!3�4�4�4�4�4r&c	�T�|�tddddd��d��dS)Nr�r��r�)������	�
�
r�r�r�r�rrr r!r"r#�r�rr!s r#�test_positional_argsz&Keywords_TestCase.test_positional_argshs:������U�A�y�'�2�>�>�+�	�	�	�	�	r&c	�V�|�tddddd���d��dS)Nr�r�rrr#)�arg4�arg5r$r%r!s r#�test_mixed_argsz!Keywords_TestCase.test_mixed_argsos=������U�A�y�w�R�H�H�H�+�	�	�	�	�	r&c	�V�|�tddddd���d��dS)Nr�r�rrr#)�arg1�arg2�arg3r(r)r$r%r!s r#�test_keyword_argsz#Keywords_TestCase.test_keyword_argsvs>������%�a�i�g�TV�W�W�W�+�	�	�	�	�	r&c�R�|�tddd���d��dS)Nr�r�r#)r,r-r))
r�r�r�r�r�r�r�r�r�r#r%r!s r#�test_optional_argsz$Keywords_TestCase.test_optional_args}s9������%�a�b�9�9�9�1�	�	�	�	�	r&c���	td���|�d��dS#t$r.}|�t	|��d��Yd}~dSd}~wwxYw)Nr�)r,�!TypeError should have been raisedz1function missing required argument 'arg2' (pos 2)�r�failr�r��str�r"�errs  r#�test_required_argsz$Keywords_TestCase.test_required_args�s���	;��%�(�(�(�(�

�I�I�9�:�:�:�:�:��	�	O�	O�	O�����C���M�
O�
O�
O�
O�
O�
O�
O�
O�
O�����	O���s�)�
A!�#A�A!c���	tdddddd��|�d��dS#t$r.}|�t	|��d��Yd}~dSd}~wwxYw)	Nr�r�rrr#�or3z,function takes at most 5 arguments (6 given)r4r7s  r#�test_too_many_argsz$Keywords_TestCase.test_too_many_args�s���	;��U�1�Y�w�r�#�>�>�>�
�I�I�9�:�:�:�:�:���	W�	W�	W����S��X�X�'U�V�V�V�V�V�V�V�V�V�����	W���s�-�
A%�#A � A%c���	tdddd���|�d��dS#t$r.}|�t	|��d��Yd}~dSd}~wwxYw)Nr�r�r#�)r)�arg666r3z9'arg666' is an invalid keyword argument for this functionr4r7s  r#�test_invalid_keywordz&Keywords_TestCase.test_invalid_keyword�s���	;��U�1�"�C�8�8�8�8�
�I�I�9�:�:�:�:�:���	d�	d�	d����S��X�X�'b�c�c�c�c�c�c�c�c�c�����	d���s�,�
A$�#A�A$c���	tdiddi��|�d��dS#t$r.}|�t	|��d��Yd}~dSd}~wwxYw)N)r�r�rr��r#r3�6'�' is an invalid keyword argument for this functionr4r7s  r#�test_surrogate_keywordz(Keywords_TestCase.test_surrogate_keyword�s���	;��L�L�h��^�L�L�L�
�I�I�9�:�:�:�:�:���	d�	d�	d����S��X�X�'b�c�c�c�c�c�c�c�c�c�����	d���s�'�
A�#A�AN)r(r)r*rr&r*r/r1r9r<r@rDr r&r#rrPs�������5�5�5�.������������;�;�;�;�;�;�;�;�;�;�;�;�;�;r&rc�J�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZdS)�KeywordOnly_TestCasec�N�|�tdd��d��dS)Nr�r��r�r�r��r�rr!s r#r&z)KeywordOnly_TestCase.test_positional_args�s4����� ��A�&�&��	�	�	�	�	r&c�R�|�tddd���d��dS)Nr�r�r���keyword_onlyr�rIr!s r#r*z$KeywordOnly_TestCase.test_mixed_args�s9����� ��A�A�6�6�6��	�	�	�	�	r&c�R�|�tddd���d��dS)Nr�r�r�)�required�optionalrLr�rIr!s r#r/z&KeywordOnly_TestCase.test_keyword_args�s9����� �!�a�a�H�H�H��	�	�	�	�	r&c��|�tdd���d��|�tdd���d��dS)Nr�r�)rNrOrHr�)rNrL�r�r�r�rIr!s r#r1z'KeywordOnly_TestCase.test_optional_args�sd����� �!�a�8�8�8��	�	�	�	
��� �!�!�<�<�<��	�	�	�	�	r&c��|�td��d��|�td���d��|�td��5td���ddd��n#1swxYwY|�td��5td���ddd��dS#1swxYwYdS)	Nr��r�r�r�)rNz7function missing required argument 'required' \(pos 1\)r�)rOr�rK)r�r�assertRaisesRegexr�r!s r#r9z'KeywordOnly_TestCase.test_required_args�sl����� ��#�#��	�	�	�	
��� �!�,�,�,��	�	�	�
�
#�
#�I�F�H�H�	-�	-� �!�,�,�,�,�	-�	-�	-�	-�	-�	-�	-�	-�	-�	-�	-����	-�	-�	-�	-��
#�
#�I�F�H�H�	1�	1� �a�0�0�0�0�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1����	1�	1�	1�	1�	1�	1s$�#B�B�B�&C�C�Cc��|�td��5tddd��ddd��n#1swxYwY|�td��5tdddd���ddd��dS#1swxYwYdS)Nz9function takes at most 2 positional arguments \(3 given\)r�r�r�z.function takes at most 3 arguments \(4 given\)rrK�rTr�rr!s r#r<z'KeywordOnly_TestCase.test_too_many_args�s��
�
#�
#�I�H�J�J�	*�	*� ��A�q�)�)�)�	*�	*�	*�	*�	*�	*�	*�	*�	*�	*�	*����	*�	*�	*�	*��
#�
#�I�=�?�?�	:�	:� ��A�q�q�9�9�9�9�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:����	:�	:�	:�	:�	:�	:s�:�>�>� B�B�Bc��|�td��5tddd���ddd��dS#1swxYwYdS)Nz:'monster' is an invalid keyword argument for this functionr�r�r>)�monsterrVr!s r#r@z)KeywordOnly_TestCase.test_invalid_keyword�s���
�
#�
#�I�H�J�J�	4�	4� ��A�s�3�3�3�3�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4����	4�	4�	4�	4�	4�	4s�<�A�Ac��|�td��5tdiddi��ddd��dS#1swxYwYdS)NrCr�r�rBr#r�rVr!s r#rDz+KeywordOnly_TestCase.test_surrogate_keyword�s���
�
#�
#�I�G�I�I�	9�	9� �8�8�(�B��8�8�8�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9����	9�	9�	9�	9�	9�	9s�8�<�<c�V�Gd�dt��}|�td��5td
i|d��di��ddd��n#1swxYwY|�td��5td
i|d��d	i��ddd��dS#1swxYwYdS)Nc��eZdZd�Zd�ZdS)�<KeywordOnly_TestCase.test_weird_str_subclass.<locals>.BadStrc��dSr9r �r"�others  r#�__eq__zCKeywordOnly_TestCase.test_weird_str_subclass.<locals>.BadStr.__eq__�s���tr&c�<�t�|��dzS)Nr��r6�__hash__r!s r#rczEKeywordOnly_TestCase.test_weird_str_subclass.<locals>.BadStr.__hash__�s���|�|�D�)�)�A�-�-r&N�r(r)r*r`rcr r&r#�BadStrr\�s2������
�
�
�
.�
.�
.�
.�
.r&re�*invalid keyword argument for this functionr�r�rLr�rXr>r��r6rTr�r�r"res  r#�test_weird_str_subclassz,KeywordOnly_TestCase.test_weird_str_subclass�s���	.�	.�	.�	.�	.�S�	.�	.�	.��
#�
#�I�8�:�:�	F�	F� �E�E�&�&��*@�*@�!�)D�E�E�E�	F�	F�	F�	F�	F�	F�	F�	F�	F�	F�	F����	F�	F�	F�	F��
#�
#�I�8�:�:�	C�	C� �B�B�&�&��*;�*;�S�)A�B�B�B�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�	C�	C�#�A�A�A�9B�B"�%B"c�V�Gd�dt��}|�td��5td
i|d��di��ddd��n#1swxYwY|�td��5td
i|d��d	i��ddd��dS#1swxYwYdS)Nc��eZdZd�Zd�ZdS)�=KeywordOnly_TestCase.test_weird_str_subclass2.<locals>.BadStrc��dS)NFr r^s  r#r`zDKeywordOnly_TestCase.test_weird_str_subclass2.<locals>.BadStr.__eq__�s���ur&c�6�t�|��Sr�rbr!s r#rczFKeywordOnly_TestCase.test_weird_str_subclass2.<locals>.BadStr.__hash__s���|�|�D�)�)�)r&Nrdr r&r#rerm�s2������
�
�
�
*�
*�
*�
*�
*r&rerfr�r�rLr�rXr>r�rgrhs  r#�test_weird_str_subclass2z-KeywordOnly_TestCase.test_weird_str_subclass2�s���	*�	*�	*�	*�	*�S�	*�	*�	*�
�
#�
#�I�8�:�:�	F�	F� �E�E�&�&��*@�*@�!�)D�E�E�E�	F�	F�	F�	F�	F�	F�	F�	F�	F�	F�	F����	F�	F�	F�	F��
#�
#�I�8�:�:�	C�	C� �B�B�&�&��*;�*;�S�)A�B�B�B�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�	C�	CrjN)
r(r)r*r&r*r/r1r9r<r@rDrirpr r&r#rFrF�s����������������	�	�	�1�1�1�$:�:�:�4�4�4�9�9�9�
C�C�C�C�C�C�C�Cr&rFc�8�eZdZddlmZd�Zd�Zd�Zd�Z	d�Z
dS)	�"PositionalOnlyAndKeywords_TestCaser)�$getargs_positional_only_and_keywordsc�\�|�|�ddd��d��dS)Nr�r�r�r��r��getargsr!s r#r&z7PositionalOnlyAndKeywords_TestCase.test_positional_args
s.��������a��A�.�.�	�:�:�:�:�:r&c�^�|�|�ddd���d��dS)Nr�r�r���keywordr�rur!s r#r*z2PositionalOnlyAndKeywords_TestCase.test_mixed_argss0��������a��A��6�6�	�B�B�B�B�Br&c��|�|�dd��d��|�|�dd���d��dS)Nr�r�rHr�rxrQrur!s r#r1z5PositionalOnlyAndKeywords_TestCase.test_optional_argssR��������a��+�+�Z�8�8�8�������a���3�3�Z�@�@�@�@�@r&c�z�|�|�d��d��|�td��5|���ddd��n#1swxYwY|�td��5|�d���ddd��dS#1swxYwYdS)Nr�rS�9function takes at least 1 positional argument \(0 given\)r�rx)r�rvrTr�r!s r#r9z5PositionalOnlyAndKeywords_TestCase.test_required_argss8��������a���+�6�6�6�
�
#�
#�I�H�J�J�	�	��L�L�N�N�N�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	��
#�
#�I�H�J�J�	$�	$��L�L��L�#�#�#�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$����	$�	$�	$�	$�	$�	$s$�A&�&A*�-A*�B0�0B4�7B4c��|�td��5|jdiddi��ddd��dS#1swxYwYdS)Nz3'' is an invalid keyword argument for this functionr�r�r�r>r�)rTr�rvr!s r#�test_empty_keywordz5PositionalOnlyAndKeywords_TestCase.test_empty_keyword%s���
�
#�
#�I�A�C�C�	,�	,��D�L�+�+�"�c��+�+�+�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,����	,�	,�	,�	,�	,�	,s
�9�=�=N)r(r)r*rrsrvr&r*r1r9r~r r&r#rrrr
sw������I�I�I�I�I�I�;�;�;�C�C�C�A�A�A�
	$�	$�	$�,�,�,�,�,r&rrc�,�eZdZd�Zd�Zd�Zd�Zd�ZdS)�Bytes_TestCasec���ddlm}|�t|d��|�|d��d��|�|td����d��|�t|t
d����|�t|d��|�t|d��|�t|d��dS)Nr)�	getargs_csabc�a�a�s)rr�r�r�r��	bytearray�
memoryview)r"r�s  r#�test_czBytes_TestCase.test_c,s���'�'�'�'�'�'����)�Y��7�7�7������4���"�-�-�-������9�T�?�?�3�3�R�8�8�8����)�Y�
�4�0@�0@�A�A�A����)�Y��4�4�4����)�Y��3�3�3����)�Y��5�5�5�5�5r&c��ddlm}|�t|d��|�|d��d��|�t
|d��|�t|t
d����|�t|td����|�t|d��dS)Nr)�	getargs_y�abcé�bytes�nul:�	bytearray�
memoryview)rr�r�r�r�r
r�r�)r"r�s  r#�test_yzBytes_TestCase.test_y6s���'�'�'�'�'�'����)�Y�	�:�:�:������8�,�,�h�7�7�7����*�i��;�;�;����)�Y�	�,�0G�0G�H�H�H����)�Y�
�=�0I�0I�J�J�J����)�Y��5�5�5�5�5r&c��ddlm}|�t|d��|�|d��d��|�|d��d��|�|td����d��|�|t
d����d��|�t|d��dS)Nr)�getargs_y_starr�r�r�r�r�)rr�r�r�r�r�r�)r"r�s  r#�test_y_starzBytes_TestCase.test_y_star?s���,�,�,�,�,�,����)�^�Y�?�?�?�������1�1�8�<�<�<������	�2�2�I�>�>�>������	�,�(?�(?�@�@�,�O�O�O������
�=�(A�(A�B�B�M�R�R�R����)�^�T�:�:�:�:�:r&c��ddlm}|�t|d��|�|d��d��|�|d��d��|�t|td����|�t|t
d����|�t|d��dS)Nr)�getargs_y_hashr�r�r�r�r�)rr�r�r�r�r�r�)r"r�s  r#�test_y_hashzBytes_TestCase.test_y_hashHs���,�,�,�,�,�,����)�^�Y�?�?�?�������1�1�8�<�<�<������	�2�2�I�>�>�>����)�^�Y�|�5L�5L�M�M�M����)�^�Z�
�5N�5N�O�O�O����)�^�T�:�:�:�:�:r&c��ddlm}|�t|d��|�t|d��|�t|d��|�t|t	d����td��}|�||��d��|�|td����td��}|�|t	|����d	��|�|td	����|�t|d��dS)
Nr)�getargs_w_starr�r�r�r�s	[ytearra]r�s
[emoryvie])rr�r�r�r�r�r�)r"r��bufs   r#�test_w_starzBytes_TestCase.test_w_starQs6��,�,�,�,�,�,����)�^�Y�?�?�?����)�^�X�>�>�>����)�^�Y�?�?�?����)�^�Z��5I�5I�J�J�J���%�%��������,�,�l�;�;�;�����i��5�5�6�6�6��
�&�&�������
�3���8�8�-�H�H�H�����i�
�6�6�7�7�7����)�^�T�:�:�:�:�:r&N)r(r)r*r�r�r�r�r�r r&r#r�r�+s_������6�6�6�6�6�6�;�;�;�;�;�;�
;�
;�
;�
;�
;r&r�c���eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zejd
���Zejd���Zejd���Zejd���ZdS)�String_TestCasec�P�ddlm}|�t|d��|�|d��d��|�|d��d��|�|d��d	��|�t|d
��|�t|td
����|�t|t
d
����|�t|d��|�t|d��dS)Nr)�	getargs_C�abcrr�u€i� u🐍i
�r�)rr�r�r�r�r�r�)r"r�s  r#�test_CzString_TestCase.test_Cbs��'�'�'�'�'�'����)�Y��6�6�6������3����,�,�,������8�,�,�f�5�5�5������<�0�0�'�:�:�:����)�Y��5�5�5����)�Y�	�$���@�@�@����)�Y�
�4�0@�0@�A�A�A����)�Y��3�3�3����)�Y��5�5�5�5�5r&c��ddlm}|�|d��d��|�t|d��|�t
|d��|�t
|t
d����|�t
|td����|�t
|d��dS)	Nr)�	getargs_sr��abcé�nul:r�r�r�)rr�r�r�r
r�r�r�)r"r�s  r#�test_szString_TestCase.test_sns���'�'�'�'�'�'������9�-�-�~�>�>�>����*�i��:�:�:����)�Y��9�9�9����)�Y�	�,�0G�0G�H�H�H����)�Y�
�=�0I�0I�J�J�J����)�Y��5�5�5�5�5r&c��ddlm}|�|d��d��|�|d��d��|�|d��d��|�|td����d��|�|t	d	����d	��|�t|d��dS)
Nr)�getargs_s_starr�r�r�r�r�r�r�)rr�r�r�r�r�r�)r"r�s  r#�test_s_starzString_TestCase.test_s_starws���,�,�,�,�,�,������	�2�2�N�C�C�C�������1�1�9�=�=�=�������1�1�8�<�<�<������	�,�(?�(?�@�@�,�O�O�O������
�=�(A�(A�B�B�M�R�R�R����)�^�T�:�:�:�:�:r&c��ddlm}|�|d��d��|�|d��d��|�|d��d��|�t|td����|�t|t
d	����|�t|d��dS)
Nr)�getargs_s_hashr�r�r�r�r�r�r�)rr�r�r�r�r�r�)r"r�s  r#�test_s_hashzString_TestCase.test_s_hash�s���,�,�,�,�,�,������	�2�2�N�C�C�C�������1�1�9�=�=�=�������1�1�8�<�<�<����)�^�Y�|�5L�5L�M�M�M����)�^�Z�
�5N�5N�O�O�O����)�^�T�:�:�:�:�:r&c���ddlm}ddlm}tddg��}|�t
||d��|�t
||d���|�t
||d���|�t
||d	��|�t
||d���|�t
||d���|�d
��dS)Nr)�getargs_s_hash_int)�getargs_s_hash_int2r�r�r�r�)r�)r�r�)rr�r�r�r��SystemError�append)r"r�r�r�s    r#�test_s_hash_intzString_TestCase.test_s_hash_int�s���0�0�0�0�0�0�1�1�1�1�1�1���A��������+�'9�3��F�F�F����+�'9�3�"��E�E�E����+�'9�3�%��H�H�H����+�':�C��J�J�J����+�':�C�2��F�F�F����+�':�C�5��I�I�I��
�
�1�
�
�
�
�
r&c��ddlm}|�|d��d��|�t|d��|�t
|d��|�t
|t
d����|�t
|td����|�|d����dS)	Nr)�	getargs_zr�r�r�r�r�r�)	rr�r�r�r
r�r�r��assertIsNone)r"r�s  r#�test_zzString_TestCase.test_z�s���'�'�'�'�'�'������9�-�-�~�>�>�>����*�i��:�:�:����)�Y��9�9�9����)�Y�	�,�0G�0G�H�H�H����)�Y�
�=�0I�0I�J�J�J����)�)�D�/�/�*�*�*�*�*r&c��ddlm}|�|d��d��|�|d��d��|�|d��d��|�|td����d��|�|t	d	����d	��|�|d����dS)
Nr)�getargs_z_starr�r�r�r�r�r�r�)rr�r�r�r�r�)r"r�s  r#�test_z_starzString_TestCase.test_z_star�s���,�,�,�,�,�,������	�2�2�N�C�C�C�������1�1�9�=�=�=�������1�1�8�<�<�<������	�,�(?�(?�@�@�,�O�O�O������
�=�(A�(A�B�B�M�R�R�R����.�.��.�.�/�/�/�/�/r&c��ddlm}|�|d��d��|�|d��d��|�|d��d��|�t|td����|�t|t
d	����|�|d����dS)
Nr)�getargs_z_hashr�r�r�r�r�r�r�)rr�r�r�r�r�r�r�)r"r�s  r#�test_z_hashzString_TestCase.test_z_hash�s���,�,�,�,�,�,������	�2�2�N�C�C�C�������1�1�9�=�=�=�������1�1�8�<�<�<����)�^�Y�|�5L�5L�M�M�M����)�^�Z�
�5N�5N�O�O�O����.�.��.�.�/�/�/�/�/r&c�Z�ddlm}|�|d��d��|�|dd��d��|�t|dd��|�t
|dd��|�t|d	d��|�t|td
��d��|�t|td��d��|�t|dd��|�t|dd��dS)
Nr)�
getargs_esr�r��latin1�abc��ascii�spamr�r�r�r�)	rr�r�r��UnicodeEncodeError�LookupErrorr�r�r�)r"r�s  r#�test_eszString_TestCase.test_es�s#��(�(�(�(�(�(������I�.�.��?�?�?������I�x�8�8�*�E�E�E����,�j�)�W�M�M�M����+�z�9�f�E�E�E����)�Z��8�D�D�D����)�Z��<�1H�1H�(�S�S�S����)�Z��M�1J�1J�H�U�U�U����)�Z��x�@�@�@����)�Z��8�D�D�D�D�Dr&c���ddlm}|�|d��d��|�|dd��d��|�t|dd��|�t
|dd��|�|d	d��d	��|�|t
d
��d��d
��|�t|td��d��|�t|dd��|�t|dd��|�t|d
d��|�t|t
d
��d��dS)Nr)�
getargs_etr�r�r�r�r�r�r�r�r�r�r�)	rr�r�r�r�r�r�r�r�)r"r�s  r#�test_etzString_TestCase.test_et�so��(�(�(�(�(�(������I�.�.��?�?�?������I�x�8�8�*�E�E�E����,�j�)�W�M�M�M����+�z�9�f�E�E�E������H�h�7�7��B�B�B������I�l�$;�$;�X�F�F��U�U�U����)�Z��M�1J�1J�H�U�U�U����)�Z��x�@�@�@����)�Z��8�D�D�D����)�Z��H�E�E�E����)�Z��9�1E�1E�x�P�P�P�P�Pr&c��ddlm}|�|d��d��|�|dd��d��|�t|dd��|�t
|dd��|�t|d	d��|�t|td
��d��|�t|td��d��|�t|dd��|�|dd��d
��td��}|�|dd|��d��|�|td����td��}|�|dd|��d��|�|td����td��}|�t|dd|��|�|td����t��}|�t|dd|��dS)Nr)�getargs_es_hashr�r�r�r�r�r�r�r�r�r�r��xxxxxxxx�abc�xxx�xxxxx�abc��xxxx)
rr�r�r�r�r�r�r�r�r
)r"r�r�s   r#�test_es_hashzString_TestCase.test_es_hash�s7��-�-�-�-�-�-�������3�3�^�D�D�D�������H�=�=�z�J�J�J����,�o�y�'�R�R�R����+��	�6�J�J�J����)�_�h��I�I�I����)�_�i��6M�6M�x�X�X�X����)�_�j��6O�6O�QY�Z�Z�Z����)�_�d�H�E�E�E�������8�<�<�i�H�H�H������������H�c�B�B�J�O�O�O�����i�(9�:�:�;�;�;������������H�c�B�B�J�O�O�O�����i��7�7�8�8�8���������*�o�y�(�C�P�P�P�����i��/�/�0�0�0��k�k�����*�o�y�(�C�P�P�P�P�Pr&c�J�ddlm}|�|d��d��|�|dd��d��|�t|dd��|�t
|dd��|�|d	d��d	��|�|t
d
��d��d
��|�t|td��d��|�t|dd��|�|dd��d
��|�|d
d��d
��|�|t
d
��d��d
��t
d��}|�|dd|��d��|�|t
d����t
d��}|�|dd|��d��|�|t
d����t
d��}|�t|dd|��|�|t
d����t
��}|�t|dd|��dS)Nr)�getargs_et_hashr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�)
rr�r�r�r�r�r�r�r�r
)r"r�r�s   r#�test_et_hashzString_TestCase.test_et_hash�s���-�-�-�-�-�-�������3�3�^�D�D�D�������H�=�=�z�J�J�J����,�o�y�'�R�R�R����+��	�6�J�J�J�������8�<�<�h�G�G�G�������<�)@�)@�(�K�K�\�Z�Z�Z����)�_�j��6O�6O�QY�Z�Z�Z����)�_�d�H�E�E�E�������8�<�<�i�H�H�H�������H�=�=�y�I�I�I�������9�)=�)=�x�H�H�)�T�T�T������������H�c�B�B�J�O�O�O�����i�(9�:�:�;�;�;������������H�c�B�B�J�O�O�O�����i��7�7�8�8�8���������*�o�y�(�C�P�P�P�����i��/�/�0�0�0��k�k�����*�o�y�(�C�P�P�P�P�Pr&c��ddlm}|�t��5|�|d��d��ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwYtj��5tjdt��|�t|d��ddd��dS#1swxYwYdS)	Nr)�	getargs_ur�r�r�r�r��error)
rr�r�r�r�r�r
r�r�r��warnings�catch_warnings�simplefilter)r"r�s  r#�test_uzString_TestCase.test_us��'�'�'�'�'�'�
�
�
�0�
1�
1�	>�	>����Y�Y�y�1�1�9�=�=�=�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>����	>�	>�	>�	>�
�
�
�0�
1�
1�	?�	?����j�)�X�>�>�>�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?����	?�	?�	?�	?�
�
�
�0�
1�
1�	>�	>����i��H�=�=�=�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>����	>�	>�	>�	>�
�
�
�0�
1�
1�	M�	M����i��I�l�4K�4K�L�L�L�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M����	M�	M�	M�	M�
�
�
�0�
1�
1�	O�	O����i��J�}�4M�4M�N�N�N�	O�	O�	O�	O�	O�	O�	O�	O�	O�	O�	O����	O�	O�	O�	O�
�
�
�0�
1�
1�	:�	:����i��D�9�9�9�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:�	:����	:�	:�	:�	:�
�
$�
&�
&�	H�	H��!�'�+=�>�>�>����0�)�Y�G�G�G�	H�	H�	H�	H�	H�	H�	H�	H�	H�	H�	H�	H����	H�	H�	H�	H�	H�	Hs}� A
�
A�A�2B�B�"B�C)�)C-�0C-�*E�E�E�)*F�F#�&F#�G-�-G1�4G1�7I�I�Ic��ddlm}|�t��5|�|d��d��ddd��n#1swxYwY|�t��5|�|d��d��ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwYtj
��5tjdt��|�t|d��ddd��dS#1swxYwYdS)	Nr)�getargs_u_hashr�r�r�r�r�r�)rr�r�r�r�r�r�r�r�r�r�r�)r"r�s  r#�test_u_hashzString_TestCase.test_u_hashsI��,�,�,�,�,�,�
�
�
�0�
1�
1�	C�	C����^�^�I�6�6�	�B�B�B�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�
�
�
�0�
1�
1�	A�	A����^�^�H�5�5�x�@�@�@�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A����	A�	A�	A�	A�
�
�
�0�
1�
1�	C�	C����i���B�B�B�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�
�
�
�0�
1�
1�	R�	R����i���<�9P�9P�Q�Q�Q�	R�	R�	R�	R�	R�	R�	R�	R�	R�	R�	R����	R�	R�	R�	R�
�
�
�0�
1�
1�	T�	T����i���M�9R�9R�S�S�S�	T�	T�	T�	T�	T�	T�	T�	T�	T�	T�	T����	T�	T�	T�	T�
�
�
�0�
1�
1�	?�	?����i���>�>�>�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?����	?�	?�	?�	?�
�
$�
&�
&�	M�	M��!�'�+=�>�>�>����0�.�)�L�L�L�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M����	M�	M�	M�	M�	M�	Ms}� A
�
A�A�2 B�B"�%B"�C,�,C0�3C0�*E�E�E�,*F"�"F&�)F&�G0�0G4�7G4�7I�I�Ic��ddlm}|�t��5|�|d��d��ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�
|d����ddd��n#1swxYwYtj��5tj
dt��|�t|d��ddd��dS#1swxYwYdS)	Nr)�	getargs_Zr�r�r�r�r�r�)rr�r�r�r�r�r
r�r�r�r�r�r�r�)r"r�s  r#�test_ZzString_TestCase.test_Z's��'�'�'�'�'�'�
�
�
�0�
1�
1�	>�	>����Y�Y�y�1�1�9�=�=�=�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>����	>�	>�	>�	>�
�
�
�0�
1�
1�	?�	?����j�)�X�>�>�>�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?�	?����	?�	?�	?�	?�
�
�
�0�
1�
1�	>�	>����i��H�=�=�=�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>����	>�	>�	>�	>�
�
�
�0�
1�
1�	M�	M����i��I�l�4K�4K�L�L�L�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M����	M�	M�	M�	M�
�
�
�0�
1�
1�	O�	O����i��J�}�4M�4M�N�N�N�	O�	O�	O�	O�	O�	O�	O�	O�	O�	O�	O����	O�	O�	O�	O�
�
�
�0�
1�
1�	/�	/����i�i��o�o�.�.�.�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/����	/�	/�	/�	/�
�
$�
&�
&�	H�	H��!�'�+=�>�>�>����0�)�Y�G�G�G�	H�	H�	H�	H�	H�	H�	H�	H�	H�	H�	H�	H����	H�	H�	H�	H�	H�	Hs}� A
�
A�A�2B�B�"B�C)�)C-�0C-�*E�E�E�)*F�F#�&F#�G/�/G3�6G3�
7I�I�Ic���ddlm}|�t��5|�|d��d��ddd��n#1swxYwY|�t��5|�|d��d��ddd��n#1swxYwY|�t��5|�t|d��ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�t|td����ddd��n#1swxYwY|�t��5|�	|d����ddd��n#1swxYwYtj��5tjdt��|�t|d��ddd��dS#1swxYwYdS)	Nr)�getargs_Z_hashr�r�r�r�r�r�)
rr�r�r�r�r�r�r�r�r�r�r�r�)r"r�s  r#�test_Z_hashzString_TestCase.test_Z_hash:sO��,�,�,�,�,�,�
�
�
�0�
1�
1�	C�	C����^�^�I�6�6�	�B�B�B�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�
�
�
�0�
1�
1�	A�	A����^�^�H�5�5�x�@�@�@�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A����	A�	A�	A�	A�
�
�
�0�
1�
1�	C�	C����i���B�B�B�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�
�
�
�0�
1�
1�	R�	R����i���<�9P�9P�Q�Q�Q�	R�	R�	R�	R�	R�	R�	R�	R�	R�	R�	R����	R�	R�	R�	R�
�
�
�0�
1�
1�	T�	T����i���M�9R�9R�S�S�S�	T�	T�	T�	T�	T�	T�	T�	T�	T�	T�	T����	T�	T�	T�	T�
�
�
�0�
1�
1�	4�	4����n�n�T�2�2�3�3�3�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4����	4�	4�	4�	4�
�
$�
&�
&�	M�	M��!�'�+=�>�>�>����0�.�)�L�L�L�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M�	M����	M�	M�	M�	M�	M�	Ms}� A
�
A�A�2 B�B"�%B"�C,�,C0�3C0�*E�E�E�,*F"�"F&�)F&�G2�2G6�9G6�7I�I�IN)r(r)r*r�r�r�r�r�r�r�r�r�r�r�r�r�requires_legacy_unicode_capir�r�r�r�r r&r#r�r�as^������
6�
6�
6�6�6�6�;�;�;�;�;�;����"+�+�+�0�0�0�0�0�0�
E�
E�
E�Q�Q�Q�Q�Q�Q�0Q�Q�Q�4
�)�H�H�*�)�H�$
�)�M�M�*�)�M�$
�)�H�H�*�)�H�$
�)�M�M�*�)�M�M�Mr&r�c� �eZdZd�Zd�Zd�ZdS)�Object_TestCasec�h�ddlm}d}|�||��|��|�t|td����|�t|d��|�t|d��|�t|t
|����dS)Nr)�	getargs_Sr�r�r6)rr�rr�r�r�r�)r"r��objs   r#�test_SzObject_TestCase.test_SOs���'�'�'�'�'�'����
�
�i�i��n�n�c�*�*�*����)�Y�	�,�0G�0G�H�H�H����)�Y��6�6�6����)�Y��5�5�5����)�Y�
�3���@�@�@�@�@r&c�h�ddlm}td��}|�||��|��|�t
|d��|�t
|d��|�t
|d��|�t
|t
|����dS)Nr)�	getargs_Yr�r�r6)rr�r�rr�r�r�)r"r�r�s   r#�test_YzObject_TestCase.test_YXs���'�'�'�'�'�'���%�%���
�
�i�i��n�n�c�*�*�*����)�Y��9�9�9����)�Y��6�6�6����)�Y��5�5�5����)�Y�
�3���@�@�@�@�@r&c��ddlm}d}|�||��|��|�t|d��|�t|td����|�t|d��dS)Nr)�	getargs_Ur6r�r�)rr�rr�r�r�)r"r�r�s   r#�test_UzObject_TestCase.test_Uas���'�'�'�'�'�'����
�
�i�i��n�n�c�*�*�*����)�Y��9�9�9����)�Y�	�,�0G�0G�H�H�H����)�Y��5�5�5�5�5r&N)r(r)r*r�r�r�r r&r#r�r�NsG������A�A�A�A�A�A�6�6�6�6�6r&r�c��eZdZd�ZdS)�Test6012c�d�|�t�dd��d��dS)Nr��Worldr�)r�r�
argparsingr!s r#�testz
Test6012.testls.������-�-�g�w�?�?��C�C�C�C�Cr&N)r(r)r*r�r r&r#r�r�ks(������D�D�D�D�Dr&r�c�H�eZdZeje���d���Zd�ZdS)�SkipitemTest��categoryc�V�d}d}ddi}ddg}tdd��D�]
}t|��}|dvr�|d	z}	t�||||��d
}n9#t$r}	d}
t|	��|
k}Yd}	~	nd}	~	wt$rd
}YnwxYwd
|z}	t�||||��d
}n?#t$r2}	d�|��}
t|	��|
k}Yd}	~	nd}	~	wwxYwd�||||��}
|�|||
����dS)aB
        If this test failed, you probably added a new "format unit"
        in Python/getargs.c, but neglected to update our poor friend
        skipitem() in the same file.  (If so, shame on you!)

        With a few exceptions**, this function brute-force tests all
        printable ASCII*** characters (32 to 126 inclusive) as format units,
        checking to see that PyArg_ParseTupleAndKeywords() return consistent
        errors both when the unit is attempted to be used and when it is
        skipped.  If the format unit doesn't exist, we'll get one of two
        specific error messages (one for used, one for skipped); if it does
        exist we *won't* get that error--we'll get either no error or some
        other error.  If we get the specific "does not exist" error for one
        test and not for the other, there's a mismatch, and the test fails.

           ** Some format units have special funny semantics and it would
              be difficult to accommodate them here.  Since these are all
              well-established and properly skipped in skipitem() we can
              get away with not testing them--this test is really intended
              to catch *new* format units.

          *** Python C source files must be ASCII.  Therefore it's impossible
              to have non-ASCII format units.

        r �rrr�r� �z()e|$�iFz(argument 1 (impossible<bad format char>)N�|z!impossible<bad format char>: '{}'z�test_skipitem_parity: detected mismatch between convertsimple and skipitem for format unit '{}' ({}), not skipped {}, skipped {})	�range�chrr�parse_tuple_and_keywordsr�r6r��formatr)r"�empty_tuple�tuple_1�dict_b�keywordsr�r�r�when_not_skipped�er��optional_format�when_skipped�messages              r#�
test_skipitemzSkipitemTest.test_skipitemss���6�����a�����:���r�3���#	C�#	C�A��A���A�
�G�|�
����W�F�
)��2�2�7�F��H�&�&�&�#(� � ���
1�
1�
1�>��$'��F�F�a�K� � � � � � ������
)�
)�
)�#(� � � �
)����"�F�l�O�
-��2�2�;��#�X�/�/�/�$�����
-�
-�
-�7�>�>�v�F�F�� #�A���!������������
-����H�HN���q�,�(8�I:�I:�
�
�M�M�,�(8�'�B�B�B�B�G#	C�#	Cs5�A�
B�$A>�>B�B�B9�9
C5�(C0�0C5c
���tj}d}d}ddi}ddg}d}tjD]�}dD]�}||z}	|�|	���5d	|	zd
z}
|	|vr||||
|��nA|�td��5||||
|��ddd��n#1swxYwYddd��n#1swxYwY����tttdd
����D]�}d|z}	d	|	zd
z}
|�|	���5|dvr||||
|��nA|�td��5||||
|��ddd��n#1swxYwYddd��n#1swxYwY��dS)Nr r�rr�r)
zs#zs*zz#zz*zu#zZ#zy#zy*zw#zw*z#*)rr�r�zimpossible<bad format char>r��r	�st)
rr�string�
ascii_letters�subTestrTr��maprr)r"�parserrrr�	supportedr��c2�fr
s           r#�test_skipitem_with_suffixz&SkipitemTest.test_skipitem_with_suffix�s%���2�������a�����:��P�	��%�
	R�
	R�A��	
R�	
R����F���\�\��\�+�+�R�R�&)�A�g��m�O��I�~�R���k�6�?�H�M�M�M�M�!�3�3�K�$A�C�C�R�R�!�E�+�v���Q�Q�Q�R�R�R�R�R�R�R�R�R�R�R����R�R�R�R�R�R�R�R�R�R�R�R�R�R�R����R�R�R�R��	
R��S�%��C�.�.�)�)�		N�		N�A��a��A�!�A�g��m�O����Q��'�'�
N�
N���9�N��E�+�v���I�I�I�I��/�/�� =�?�?�N�N���k�6�?�H�M�M�M�N�N�N�N�N�N�N�N�N�N�N����N�N�N�N�	
N�
N�
N�
N�
N�
N�
N�
N�
N�
N�
N����
N�
N�
N�
N��		N�		Nsl�7B1�?B	�B1�B
�B1�!B
�"B1�1B5�8B5�/E'�5E�E'�E�E'�E�E'�'E+	�.E+	N)r(r)r*r�ignore_warningsr�r
rr r&r#r�r�ps]������%�_�$�.@�A�A�A�BC�BC�B�A�BC�HN�N�N�N�Nr&r�c� �eZdZd�Zd�Zd�ZdS)�ParseTupleAndKeywords_Testc	�X�|�ttjdidg��|�ttjdidd��|�ttjdiddgdz��|�ttjdiddg��dS)Nr r�r�)r�r�rrr
r!s r#�test_parse_tuple_and_keywordsz8ParseTupleAndKeywords_Test.test_parse_tuple_and_keywords�s������)�Y�%G��b�"�b�	*�	*�	*����*�i�&H��b�"�b�	*�	*�	*����*�i�&H��b�"�r�d�R�i�	1�	1�	1����*�i�&H��b�"�r�d�	,�	,�	,�	,�	,r&c	�l�|�ttjdiddg��|�ttjdidddg��|�ttjdddid	dg��|�ttjddd
d�dddg��|�ttjdddid
dg��|�ttjddd
d�dddg��|�ttjdidddg��|�ttjdiddg��|�ttjdiddg��|�ttjdidddg��dS)Nr�z||Orr�z|O|Orr r�z$$Or�rz$O$Oz$|Oz$O|Oz|Oz|OOz|$Or�)r�r�rrr!s r#�test_bad_usez'ParseTupleAndKeywords_Test.test_bad_use�s���	
���+�y�'I���E�C�5�	2�	2�	2����+�y�'I� �"�f�s�C�j�	:�	:�	:����+�y�'I��s�A�h���u�	6�	6�	6����+�y�'I��A�A�.�.���c�
�	D�	D�	D����+�y�'I��s�A�h���u�	6�	6�	6����+�y�'I��A�A�.�.���c�
�	D�	D�	D����+�y�'I���D�3��*�	6�	6�	6����+�y�'I���E�C�5�	2�	2�	2����+�y�'I��b�%�"��	/�	/�	/����+�y�'I��b�%�#�r��	4�	4�	4�	4�	4r&c���tj}|didgd���|dddidgd���|�td��5|dddidgd���ddd��n#1swxYwY|did	gd���|�td
��5|did	gd���ddd��n#1swxYwY|dddidgd���|�td
��5|dddidgd���ddd��n#1swxYwY|didgd���|�td
��5|didgd���ddd��n#1swxYwY|�td��5|didgd���ddd��n#1swxYwY|�td��5|did	gd���ddd��dS#1swxYwYdS)Nr��OOO)r�r�rr�rr�z:function takes at least 2 positional arguments \(1 given\)r�zO|OOr|r zOO$Oz9function takes exactly 2 positional arguments \(1 given\)zO|O$OzEmpty parameter name after \$zO|$OOz
Empty keyword)r�rr�)rrrTr�r�)r"rs  r#�test_positional_onlyz/ParseTupleAndKeywords_Test.test_positional_only�s����2��
��i��U�M�M�M�2�2�2�
��f�s�A�h��}�}�}�5�5�5�
�
#�
#�I�L�N�N�	8�	8��E�$��a��%����7�7�7�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�	��d�B��
�
�
�.�.�.�
�
#�
#�I�K�M�M�	1�	1��E�"�b�&�-�-�-�0�0�0�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1����	1�	1�	1�	1�	��f�s�A�h��
�
�
�6�6�6�
�
#�
#�I�K�M�M�	9�	9��E�$��a��&�-�-�-�8�8�8�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9����	9�	9�	9�	9�	��d�B�����/�/�/�
�
#�
#�I�K�M�M�	2�	2��E�"�b�'�=�=�=�1�1�1�	2�	2�	2�	2�	2�	2�	2�	2�	2�	2�	2����	2�	2�	2�	2��
#�
#�K�1Q�
R�
R�	4�	4��E�$��G�]�]�]�3�3�3�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4����	4�	4�	4�	4�
�
#�
#�K��
A�
A�	3�	3��E�$��F�M�M�M�2�2�2�	3�	3�	3�	3�	3�	3�	3�	3�	3�	3�	3�	3����	3�	3�	3�	3�	3�	3sl�
A)�)A-�0A-�B<�<C�C�4D�D�D�	E&�&E*�-E*�F)�)F-�0F-�G-�-G1�4G1N)r(r)r*rr r#r r&r#rr�sA������	,�	,�	,�4�4�4�03�3�3�3�3r&rc���eZdZe���d�ee��D����eje	���d���Z
eje	���d���ZdS)�
Test_testcapic#�K�|]E}|�d���|�d���,|tt|��fV��FdS)�test_�_codeN)�
startswith�endswith�getattrr)�.0�names  r#�	<genexpr>zTest_testcapi.<genexpr>st����L�L�����w�/�/�L�48�M�M�'�4J�4J�L�T�7�9�d�3�3�4�L�L�L�L�L�Lr&r�c�8�t���dSr�)r�test_u_coder!s r#r0zTest_testcapi.test_u_code����������r&c�8�t���dSr�)r�test_Z_coder!s r#r3zTest_testcapi.test_Z_code r1r&N)r(r)r*�locals�update�dirrrrr�r0r3r r&r#r%r%s�������
�F�H�H�O�O�L�L� #��I���L�L�L�L�L�L�%�_�$�.@�A�A�A� � �B�A� �%�_�$�.@�A�A�A� � �B�A� � � r&r%�__main__)Yr�r�r�sysr�r�r�test.supportrr�
import_modulerrr�LARGEr�r	r
rrr
rrrrrrrrrrr�
float_info�max_expr��floatr�r�r�r�r�r�intr-r0r7r=r@rErHrKrNrQrXr\r_rbrhrkr�rtrvryr|r�rr�rr�r�r�r�r�r�r�r�r�rrFrrr�r�r�r�r�rr%r(�mainr r&r#�<module>rAs	����������
�
�
�
�
�
�
�
�����������&�&�&�&�&�&�(�(�(�(�(�(�'�M�'��4�4�	�<�<�<�<�<�<�<�<�@	��
'�
�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<��n�$���e�E�l�l���e�E�l�l��
�	��	�
�
��������������s�����������������������������
�������������#�������������������������c����
��������	�	�	�	�	�E�	�	�	������U������������#�#�#�#�#�#�#�#�#�#�#�#�#��#�#�#�
��������	�	�	�	�	�g�	�	�	������w������������*�*�*�*�*�*�*�*�*�*�*�*�*�'�*�*�*�
	�	�	�	�	�E�	�	�	�	�	�	�	�	�4�	�	�	�zH�zH�zH�zH�zH��)�zH�zH�zH�x`@�`@�`@�`@�`@�h�'�`@�`@�`@�F0I�0I�0I�0I�0I��)�0I�0I�0I�fVK�VK�VK�VK�VK�X�&�VK�VK�VK�r"�"�"�"�"�"�"�"�
E�E�E�E�E�x�(�E�E�E�4(>�(>�(>�(>�(>�X�&�(>�(>�(>�TU;�U;�U;�U;�U;��)�U;�U;�U;�n`C�`C�`C�`C�`C�8�,�`C�`C�`C�F,�,�,�,�,��):�,�,�,�B3;�3;�3;�3;�3;�X�&�3;�3;�3;�ljM�jM�jM�jM�jM�h�'�jM�jM�jM�Z6�6�6�6�6�h�'�6�6�6�:D�D�D�D�D�x� �D�D�D�
eN�eN�eN�eN�eN�8�$�eN�eN�eN�P<3�<3�<3�<3�<3��!2�<3�<3�<3�~ � � � � �H�%� � � ��z����H�M�O�O�O�O�O��r&