HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/__pycache__/test_call.cpython-310.opt-2.pyc
o

�i�h�@s�ddlZddlmZzddlZWneydZYnwddlZddlZddlZddlZddl	Z	Gdd�de
�ZGdd�dej�Z
eGdd�dej��ZGd	d
�d
ej�ZGdd�de�ZGd
d�de�ZGdd�de�ZGdd�de�Zdd�Zdd�ZGdd�d�Ze�Ze�ZGdd�dej�ZdZdZdd�Zdd �ZGd!d"�d"ej�ZGd#d$�d$�Z eGd%d&�d&ej��Z!e"d'kr�e�#�dSdS)(�N)�cpython_onlyc@seZdZdd�Zdd�ZdS)�BadStrcC�dS)NT�)�self�otherrr�+/usr/local/lib/python3.10/test/test_call.py�__eq__�z
BadStr.__eq__cCst�|�dAS)N�)�str�__hash__�rrrrr
szBadStr.__hash__N)�__name__�
__module__�__qualname__r	r
rrrrrsrc@�eZdZdd�ZdS)�
FunctionCallscCs^t�ddg�}|�d�t|���}dd�}|di|��}|�|t�|�t|���|�dS)N)�a�)�b�rc[s|S�Nr)�kwrrr�fnr
z+FunctionCalls.test_kwargs_order.<locals>.fnr)�collections�OrderedDict�move_to_end�list�itemsZassertIsInstance�dict�assertEqual)rZod�expectedr�resrrr�test_kwargs_orders
zFunctionCalls.test_kwargs_orderN)rrrr$rrrrrsrc@s$eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Zd9d:�Zd;d<�Z d=d>�Z!d?d@�Z"dAdB�Z#dCdD�Z$dEdF�Z%dGS)H�CFunctionCallsErrorMessagescCsd}|�t|ij�dS)Nz7__contains__\(\) takes exactly one argument \(0 given\)��assertRaisesRegex�	TypeError�__contains__�r�msgrrr�
test_varargs0)�z)CFunctionCallsErrorMessages.test_varargs0cC�d}|�t|ijdd�dS)Nz7__contains__\(\) takes exactly one argument \(2 given\)rrr&r*rrr�
test_varargs2-�z)CFunctionCallsErrorMessages.test_varargs2cCsd}|�t|tjddd�dS)Nz@^from_bytes\(\) takes exactly 2 positional arguments \(3 given\)�a�littleF)r'r(�int�
from_bytesr*rrr�
test_varargs31�z)CFunctionCallsErrorMessages.test_varargs3cCs,d}|�t|ij�d}|�t|ij�dS)Nz'get expected at least 1 argument, got 0zexpected 1 argument, got 0)r'r(�get�__delattr__r*rrr�test_varargs1min5sz,CFunctionCallsErrorMessages.test_varargs1mincCsd}|�t|t�dS)Nz,getattr expected at least 2 arguments, got 0�r'r(�getattrr*rrr�test_varargs2min<sz,CFunctionCallsErrorMessages.test_varargs2mincCsd}|�t|tdd�dS)Nz(input expected at most 1 argument, got 2rr)r'r(�inputr*rrr�test_varargs1max@�z,CFunctionCallsErrorMessages.test_varargs1maxcCsd}|�t|ijddd�dS)Nz'get expected at most 2 arguments, got 3rrr)r'r(r7r*rrr�test_varargs2maxDr6z,CFunctionCallsErrorMessages.test_varargs2maxcC�d}|jt|ijdd�dS)N�+__contains__\(\) takes no keyword argumentsr��xr&r*rrr�test_varargs1_kwHr0z,CFunctionCallsErrorMessages.test_varargs1_kwcC�d}|jt|ijddd�dS)NrBr�rD�yr&r*rrr�test_varargs2_kwLr6z,CFunctionCallsErrorMessages.test_varargs2_kwcC�d}|jt|tdd�dS)Nz#bool\(\) takes no keyword argumentsrrC)r'r(�boolr*rrr�test_varargs3_kwPr?z,CFunctionCallsErrorMessages.test_varargs3_kwcC�d}|jt|gjdd�dS)Nz-^list[.]index\(\) takes no keyword arguments$rrC)r'r(�indexr*rrr�test_varargs4_kwTr0z,CFunctionCallsErrorMessages.test_varargs4_kwcCrJ)Nz(^hasattr\(\) takes no keyword arguments$rrC)r'r(�hasattrr*rrr�test_varargs5_kwXr?z,CFunctionCallsErrorMessages.test_varargs5_kwcCrJ)Nz(^getattr\(\) takes no keyword arguments$rrCr:r*rrr�test_varargs6_kw\r?z,CFunctionCallsErrorMessages.test_varargs6_kwcCrJ)Nz%^next\(\) takes no keyword arguments$rrC)r'r(�nextr*rrr�test_varargs7_kw`r?z,CFunctionCallsErrorMessages.test_varargs7_kwcC�d}|jt|tjdd�dS)Nz/^_struct[.]pack\(\) takes no keyword arguments$rrC)r'r(�struct�packr*rrr�test_varargs8_kwdr0z,CFunctionCallsErrorMessages.test_varargs8_kwcCrU)Nz4^_struct[.]pack_into\(\) takes no keyword arguments$rrC)r'r(rV�	pack_intor*rrr�test_varargs9_kwhr0z,CFunctionCallsErrorMessages.test_varargs9_kwcCs d}|jt|t��jdd�dS)Nz.^deque[.]index\(\) takes no keyword arguments$rrC)r'r(r�dequerNr*rrr�test_varargs10_kwlsz-CFunctionCallsErrorMessages.test_varargs10_kwcCs&d}|jt|tjjt�d�dd�dS)Nz.^Struct[.]pack\(\) takes no keyword arguments$�rrC)r'r(rV�StructrWr*rrr�test_varargs11_kwps"z-CFunctionCallsErrorMessages.test_varargs11_kwcC�d}|jt|ttd�dS)Nz-^staticmethod\(\) takes no keyword arguments$��func)r'r(�staticmethod�idr*rrr�test_varargs12_kwtr?z-CFunctionCallsErrorMessages.test_varargs12_kwcCr`)Nz,^classmethod\(\) takes no keyword arguments$ra)r'r(�classmethodrdr*rrr�test_varargs13_kwxr?z-CFunctionCallsErrorMessages.test_varargs13_kwcCs d}|jt|tjdddd�dS)Nz:^product\(\) takes at most 1 keyword argument \(2 given\)$rrr)�repeat�foo)r'r(�	itertools�productr*rrr�test_varargs14_kw|�

�z-CFunctionCallsErrorMessages.test_varargs14_kwc	C� d}|jt|tddddd�dS)Nz?^ImportError\(\) takes at most 2 keyword arguments \(3 given\)$rrrr)�name�pathri)r'r(�ImportErrorr*rrr�test_varargs15_kw�rmz-CFunctionCallsErrorMessages.test_varargs15_kwc	Crn)Nz7^min\(\) takes at most 2 keyword arguments \(3 given\)$rrrr)�default�keyri)r'r(�minr*rrr�test_varargs16_kw�rmz-CFunctionCallsErrorMessages.test_varargs16_kwcCs$d}|jt|tddddddd�	dS)	Nz9^print\(\) takes at most 4 keyword arguments \(5 given\)$rrrr��)�sep�end�file�flushri)r'r(�printr*rrr�test_varargs17_kw�s
�z-CFunctionCallsErrorMessages.test_varargs17_kwcCsLd}|�t|��tditd�di��Wd�dS1swYdS)Nz'invalid keyword argument for print\(\)$rrri�,)rr)r'r(r}rr*rrr�test_varargs18_kw��"�z-CFunctionCallsErrorMessages.test_varargs18_kwcCsLd}|�t|��tditd�di��Wd�dS1swYdS)Nz'invalid keyword argument for round\(\)$��?rir)r�)r'r(�roundrr*rrr�test_varargs19_kw�r�z-CFunctionCallsErrorMessages.test_varargs19_kwcCsd}|�t|ijd�dS)Nz'keys\(\) takes no arguments \(1 given\)r�r'r(�keysr*rrr�test_oldargs0_1�r?z+CFunctionCallsErrorMessages.test_oldargs0_1cCr.)Nz'keys\(\) takes no arguments \(2 given\)rrr�r*rrr�test_oldargs0_2�r0z+CFunctionCallsErrorMessages.test_oldargs0_2cCrA)N�#keys\(\) takes no keyword argumentsrrCr�r*rrr�test_oldargs0_1_kw�r0z.CFunctionCallsErrorMessages.test_oldargs0_1_kwcCrF)Nr�rrGr�r*rrr�test_oldargs0_2_kw�r6z.CFunctionCallsErrorMessages.test_oldargs0_2_kwcCsd}|�t|gj�dS)Nz0count\(\) takes exactly one argument \(0 given\)�r'r(�countr*rrr�test_oldargs1_0�r-z+CFunctionCallsErrorMessages.test_oldargs1_0cCsd}|�t|gjdd�dS)Nz0count\(\) takes exactly one argument \(2 given\)rrr�r*rrr�test_oldargs1_2�r0z+CFunctionCallsErrorMessages.test_oldargs1_2cCrM�N�$count\(\) takes no keyword argumentsrrCr�r*rrr�test_oldargs1_0_kw�r0z.CFunctionCallsErrorMessages.test_oldargs1_0_kwcCsd}|jt|gjidd�dSr�r�r*rrr�test_oldargs1_1_kw�r6z.CFunctionCallsErrorMessages.test_oldargs1_1_kwcCsd}|jt|gjddd�dS)Nr�rrGr�r*rrr�test_oldargs1_2_kw�r6z.CFunctionCallsErrorMessages.test_oldargs1_2_kwN)&rrrr,r/r5r9r<r>r@rErIrLrOrQrRrTrXrZr\r_rergrlrrrvr~r�r�r�r�r�r�r�r�r�r�r�rrrrr%&sHr%c@s�eZdZ	dd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1S)2�TestCallingConventionscCst|_|_dSr)�	_testcapi�obj�
expected_selfrrrr�setUp�szTestCallingConventions.setUpcC�"|�|j�ddd�|jdf�dS�Nrrr�rrr�r!r��meth_varargsr�rrrr�test_varargs���z#TestCallingConventions.test_varargscC�|�|jjd�|jdf�dS�Nr�r�rrrr�test_varargs_ext��
�z'TestCallingConventions.test_varargs_extc�d}��t|�fdd��dS)Nz+meth_varargs\(\) takes no keyword argumentsc��jjdd�S�Nr)�k)r�r�rrrr�<lambda>��z>TestCallingConventions.test_varargs_error_kw.<locals>.<lambda>�r'r(r*rrr�test_varargs_error_kw���z,TestCallingConventions.test_varargs_error_kwcC�.|�|jjddddd�|jdddd�f�dS�Nrrrrw�rr�rr�r!r��meth_varargs_keywordsr�rrrr�test_varargs_keywords���z,TestCallingConventions.test_varargs_keywordscCs6|�|jjddgiddd���|jdddd�f�dSr�r�rrrr�test_varargs_keywords_ext�s�z0TestCallingConventions.test_varargs_keywords_extcCs|�|j�d�|jdf�dS�Nr�r!r��meth_or�rrrr�test_o�szTestCallingConventions.test_ocCs |�|jjdg�|jdf�dSr�r�rrrr�
test_o_ext�s z!TestCallingConventions.test_o_extcCsd}|�t||jj�dS)Nz1meth_o\(\) takes exactly one argument \(0 given\))r'r(r�r�r*rrr�test_o_error_no_arg�r?z*TestCallingConventions.test_o_error_no_argcr�)Nz1meth_o\(\) takes exactly one argument \(2 given\)c��j�dd�S�Nrr�r�r�rrrrr��r�z>TestCallingConventions.test_o_error_two_args.<locals>.<lambda>r�r*rrr�test_o_error_two_args�r�z,TestCallingConventions.test_o_error_two_argscr�)Nz1meth_o\(\) takes exactly one argument \(3 given\)c��jjd�Sr�r�rrrrr��z9TestCallingConventions.test_o_error_ext.<locals>.<lambda>r�r*rrr�test_o_error_ext�r�z'TestCallingConventions.test_o_error_extcr�)N�%meth_o\(\) takes no keyword argumentscr�r�r�rrrrr�r�z8TestCallingConventions.test_o_error_kw.<locals>.<lambda>r�r*rrr�test_o_error_kwr�z&TestCallingConventions.test_o_error_kwcr�)Nr�cr�r�r�rrrrr�
r�z<TestCallingConventions.test_o_error_arg_kw.<locals>.<lambda>r�r*rrr�test_o_error_arg_kw
r�z*TestCallingConventions.test_o_error_arg_kwcCs|�|j��|j�dSr�r!r��meth_noargsr�rrrr�test_noargssz"TestCallingConventions.test_noargscCs|�|jjg�|j�dSrr�rrrr�test_noargs_extsz&TestCallingConventions.test_noargs_extcr�)Nz.meth_noargs\(\) takes no arguments \(1 given\)cs�j�d�Sr��r�r�rrrrr�r�z>TestCallingConventions.test_noargs_error_arg.<locals>.<lambda>r�r*rrr�test_noargs_error_argr�z,TestCallingConventions.test_noargs_error_argcr�)Nz.meth_noargs\(\) takes no arguments \(2 given\)cr�r�r�rrrrr�r�z?TestCallingConventions.test_noargs_error_arg2.<locals>.<lambda>r�r*rrr�test_noargs_error_arg2r�z-TestCallingConventions.test_noargs_error_arg2cr�)Nz.meth_noargs\(\) takes no arguments \(3 given\)cr�r�r�rrrrr�%r�z>TestCallingConventions.test_noargs_error_ext.<locals>.<lambda>r�r*rrr�test_noargs_error_ext"r�z,TestCallingConventions.test_noargs_error_extcr�)Nz*meth_noargs\(\) takes no keyword argumentscr�r�r�rrrrr�+r�z=TestCallingConventions.test_noargs_error_kw.<locals>.<lambda>r�r*rrr�test_noargs_error_kw(r�z+TestCallingConventions.test_noargs_error_kwcCr�r��r!r��
meth_fastcallr�rrrr�
test_fastcall.r�z$TestCallingConventions.test_fastcallcCr�r�r�rrrr�test_fastcall_ext4r�z(TestCallingConventions.test_fastcall_extcr�)Nz,meth_fastcall\(\) takes no keyword argumentscr�r�)r�r�rrrrr�=r�z?TestCallingConventions.test_fastcall_error_kw.<locals>.<lambda>r�r*rrr�test_fastcall_error_kw:r�z-TestCallingConventions.test_fastcall_error_kwcCr�r��r!r��meth_fastcall_keywordsr�rrrr�test_fastcall_keywords@r�z-TestCallingConventions.test_fastcall_keywordscCs2|�|jjdiddd���|jdddd�f�dS)Nr�rrwr�r�rrrr�test_fastcall_keywords_extFs�z1TestCallingConventions.test_fastcall_keywords_extN)rrrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr��s4
r�c@�eZdZ	dd�ZdS)�TestCallingConventionsInstancecCst��|_|_dSr)r��MethInstancer�r�rrrrr�Psz$TestCallingConventionsInstance.setUpN�rrrr�rrrrr�M�r�c@r�)�TestCallingConventionsClasscCstj|_|_dSr�r��	MethClassr�r�rrrrr�Wsz!TestCallingConventionsClass.setUpNr�rrrrr�Tr�r�c@r�)�#TestCallingConventionsClassInstancecCst��|_tj|_dSrr�rrrrr�^s
z)TestCallingConventionsClassInstance.setUpNr�rrrrr�[r�r�c@r�)�TestCallingConventionsStaticcCst��|_d|_dSr)r��
MethStaticr�r�rrrrr�fs

z"TestCallingConventionsStatic.setUpNr�rrrrr�cr�r�cCs||gSrr��arg1�arg2rrr�pyfunck�r�cCr�N�noargrrrrr�pyfunc_noargor
r�c@s4eZdZdd�Zdd�Zedd��Zedd��Zd	S)
�PythonClasscCs||gSrr)rr�r�rrr�methodtr�zPythonClass.methodcCrr�rrrrr�method_noargwr
zPythonClass.method_noargcCr)Nrfr)�clsrrr�class_methodz�zPythonClass.class_methodcCr)Nrcrrrrr�
static_method~r�zPythonClass.static_methodN)	rrrr�r�rfr�rcr�rrrrr�ss
r�c@s4eZdZ	edddgfeddfejddfejddfej	dddgfej
ddfejddfejddfgZedd	diddgfedddd
�ddgfej	dd	diddgfej	dddd
�ddgfgZe
��Ze
e
feefe
je
jfe
��e
jfe
jdffD]�\ZZe�ejdedffejdedeffejdedffejdedffejdedeffejdedeffejdefejded
ffg�e�ejdddiedddiffejdddiedddiffejdiedeffejdddiedddiffejdddiedddiffejdiedeffg�qvdd�Zdd�Zdd�Zdd�Zdd�Z dS)�
FastCallTestsr�rrrr�rfrc)rr�r�N)�{r�rDrHcCsPt|t�r |dtur |didfvr g|dd��|d�R}|�||�dS)N���)�
isinstance�tuple�
NULL_OR_EMPTYr!)r�resultr"rrr�check_result�szFastCallTests.check_resultc	Csx|jD]6\}}}|j||d��"t�||�}|�||�|s*t�|d�}|�||�Wd�n1s4wYqdS)N�rb�args)�
CALLS_POSARGS�subTestr�Zpyobject_fastcallr�)rrbr�r"r�rrrr��s����zFastCallTests.test_fastcallc	Cs�|jD]8\}}}|j||d��$t�||d�}|�||�|s,t�|dd�}|�||�Wd�n1s6wYq|jD]+\}}}}|j|||d��t�|||�}|�||�Wd�n1sewYq?dS)Nr��rbr��kwargs)r�r�r�Zpyobject_fastcalldictr��CALLS_KWARGS)rrbr�r"r�rrrr�test_vectorcall_dict�s"���
���z"FastCallTests.test_vectorcall_dictc	Cs*|jD]R\}}}|j||d��>t�||d�}|�||�t�||d�}|�||�|sFt�|dd�}|�||�t�|dd�}|�||�Wd�n1sPwYq|jD]9\}}}}|j|||d��#t|���}|t|���}t�|||�}|�||�Wd�n1s�wYqYdS)Nr�rr�)	r�r�r��pyobject_vectorcallr�rr�r��values)rrbr�r"r�r�kwnamesrrr�test_vectorcall�s.������zFastCallTests.test_vectorcallcCs6Gdd�d�}||�d�}tddd|fi|j��dS)Nc@s"eZdZdgZdd�Zdd�ZdS)z>FastCallTests.test_fastcall_clearing_dict.<locals>.IntWithDictrc[s
||_dSr)r)rrrrr�__init__s
zGFastCallTests.test_fastcall_clearing_dict.<locals>.IntWithDict.__init__cSs|j��t��dS)Nr)r�clear�gcZcollectrrrr�	__index__!s
zHFastCallTests.test_fastcall_clearing_dict.<locals>.IntWithDict.__index__N)rrr�	__slots__rr
rrrr�IntWithDictsr)�optimize�passr]�exec)�compiler)rrrDrrr�test_fastcall_clearing_dictsz)FastCallTests.test_fastcall_clearing_dict)!rrrr�r�r�r�r��PYTHON_INSTANCEr�r�r�rr�r�Z	_instancer�r�r�r��extendr�r�r�r�r�r�r�r�r�rrrrrrrr��s�




��
�
�
�
�
��������
r�iicC�	|Srrrrrr�testfunction0�rcCrrr)rrrrr�testfunction_kw5rrc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
TestPEP590cCs�ddl}|�d�t�}|�tt�jt@�|�tt	j
�jt@�|�tt	j�jt@�|�tt�jt@�|�t|�jt@�|�tj
jt@�|�tjjt@�|�tjjt@�Gdd�dtj
�}|�|jt@�dS)Nrrc@�eZdZdS)zDTestPEP590.test_method_descriptor_flag.<locals>.MethodDescriptorHeapN�rrrrrrr�MethodDescriptorHeapK�r)�	functools�	lru_cacher�assertFalse�type�repr�	__flags__�Py_TPFLAGS_METHOD_DESCRIPTOR�
assertTruer�append�__add__r��MethodDescriptorBase�MethodDescriptorDerived�MethodDescriptorNopGet)rr�cachedrrrr�test_method_descriptor_flag<sz&TestPEP590.test_method_descriptor_flagcCsn|�tjjt@�|�tjjt@�|�tjjt@�|�tjjt@�Gdd�dtj�}|�|jt@�dS)Nc@r)z=TestPEP590.test_vectorcall_flag.<locals>.MethodDescriptorHeapNrrrrrrVrr)	r$r�r'r"�Py_TPFLAGS_HAVE_VECTORCALLr(rr)�MethodDescriptor2)rrrrr�test_vectorcall_flagOszTestPEP590.test_vectorcall_flagcCs(ttd��}t��}|�||�|�dS)Nrx)r��ranger�r)ZassertIs)rr��frrr�test_vectorcall_overrideZsz#TestPEP590.test_vectorcall_overridecs�ttd�fidftjgdfidfgjdidftdgfddidftdidftdddidft��did	ft�	�did	ft�
�did
fg	}ddlm�m}ddl
m}dd
lm}�fdd�}|D]2\}}}}	|�t|���|sw|�|	|||��|�|	||||��Wd�n1s�wYq^Gdd�dtj�}
Gdd�dtj�}Gdd�d�}Gdd�d|tj�}
|tjifdd	idfijifdd	idf|
�did	f|�didf|
�did	fg7}|D]\}}}}	|�t|���i|dd�}|||d�}||�}|�s"|�|	||��|�|	�||d��|�|	||��|�|	||��|�|	||i|���|�|	||||��|�|	||i|���|�|	||i|���Wd�n	1�sXwYq�dS)N�*r)r�$�start�)r2rTF)r�pyvectorcall_call)�
MethodType)�partialcs&g|�|���R}t|�}�|||�Sr)rr�)rbr�rr�rrr�
vectorcall|sz.TestPEP590.test_vectorcall.<locals>.vectorcallc@r)z8TestPEP590.test_vectorcall.<locals>.MethodDescriptorHeapNrrrrrr�rrc@r)z>TestPEP590.test_vectorcall.<locals>.MethodDescriptorOverriddencSr)N�newr)r�nrrr�__call__�r
zGTestPEP590.test_vectorcall.<locals>.MethodDescriptorOverridden.__call__N)rrrr=rrrr�MethodDescriptorOverridden�sr>c�eZdZ�fdd�Z�ZS)z-TestPEP590.test_vectorcall.<locals>.SuperBasec�t�j|�Sr��superr=�rr���	__class__rrr=��z6TestPEP590.test_vectorcall.<locals>.SuperBase.__call__�rrrr=�
__classcell__rrrDr�	SuperBase��rIcr?)z9TestPEP590.test_vectorcall.<locals>.MethodDescriptorSupercr@rrArCrDrrr=�rFzBTestPEP590.test_vectorcall.<locals>.MethodDescriptorSuper.__call__rGrrrDr�MethodDescriptorSuper�rJrKrtr;r)�lenr/rr%�sumrrr�r'r(r-rr6�typesr7rr8r�rr!r �update)rZcallsr6r7r8r:rbr�rr"rr>rIrKZargs1�meth�wrappedrr9rrdsb

�
������zTestPEP590.test_vectorcallN)rrrr+r.r1rrrrrr:s

rc@s,eZdZdd�Zedd��Zedd��ZdS)�AcC�dSrr)rrDrHrrr�method_two_args�r
zA.method_two_argscCrSrrrrrr�static_no_args�r�zA.static_no_argscCrSrr��argrrr�positional_only�r�zA.positional_onlyN)rrrrTrcrUrXrrrrrR�s
rRc@sBeZdZejdd��Zdd�Zdd�Zdd�Zd	d
�Z	dd�Z
d
S)�!TestErrorMessagesUseQualifiedNameccsH�|�t��}dVWd�n1swY|�t|j�|�dSr)ZassertRaisesr(r!r�	exception)r�message�cmrrr�check_raises_type_error�s
��z9TestErrorMessagesUseQualifiedName.check_raises_type_errorcCs@d}|�|��t��d�Wd�dS1swYdS)Nz?A.method_two_args() missing 1 required positional argument: 'y'rD�r]rRrTr*rrr�test_missing_arguments��"�z8TestErrorMessagesUseQualifiedName.test_missing_argumentscCs>d}|�|��t�d�Wd�dS1swYdS)Nz?A.static_no_args() takes 0 positional arguments but 1 was givenzoops it's an arg)r]rRrUr*rrr�test_too_many_positional�s"�z:TestErrorMessagesUseQualifiedName.test_too_many_positionalcCs@d}|�|��tjdd�Wd�dS1swYdS)NzYA.positional_only() got some positional-only arguments passed as keyword arguments: 'arg'rDrV)r]rRrXr*rrr�&test_positional_only_passed_as_keyword�r`zHTestErrorMessagesUseQualifiedName.test_positional_only_passed_as_keywordcCsBd}|�|��t�jdd�Wd�dS1swYdS)Nz<A.method_two_args() got an unexpected keyword argument 'bad'rD)Zbadr^r*rrr�test_unexpected_keyword�s"�z9TestErrorMessagesUseQualifiedName.test_unexpected_keywordcCsFd}|�|��t�jdddd�Wd�dS1swYdS)Nz8A.method_two_args() got multiple values for argument 'x'rDrHZoopsrCr^r*rrr�test_multiple_values�s"�z6TestErrorMessagesUseQualifiedName.test_multiple_valuesN)rrr�
contextlib�contextmanagerr]r_rarbrcrdrrrrrY�s
rY�__main__)$ZunittestZtest.supportrr�rqrVrrjr	rerrZTestCaserr%r�r�r�r�r�r�r�r�r�objectr�r�r,r#rrrrRrYr�mainrrrr�<module>sR�&w"�