Your IP : 216.73.216.213


Current Path : /opt/alt/python310/lib64/python3.10/test/support/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/test/support/__pycache__/bytecode_helper.cpython-310.opt-2.pyc

o

0�io�@s6	ddlZddlZddlZe�ZGdd�dej�ZdS)�Nc@s.eZdZ	dd�Zefdd�Zefdd�ZdS)�BytecodeTestCasecCst��}tj||d�|��S)N)�file)�io�StringIO�dis�getvalue)�self�co�s�r�C/opt/alt/python310/lib64/python3.10/test/support/bytecode_helper.py�get_disassembly_as_stringsz*BytecodeTestCase.get_disassembly_as_stringcCsv	t�|�D]}|j|kr|tus|j|kr|Sq|�|�}|tur+d||f}n	d}||||f}|�|�dS)Nz%s not found in bytecode:
%sz!(%s,%r) not found in bytecode:
%s)r�get_instructions�opname�_UNSPECIFIED�argvalr
�fail�r�xrrZinstrZdisassembly�msgrrr�assertInBytecodes
�
z!BytecodeTestCase.assertInBytecodecCsp	t�|�D]/}|j|kr5|�|�}|tur"d||f}|�|�q|j|kr5d}||||f}|�|�qdS)Nz%s occurs in bytecode:
%sz(%s,%r) occurs in bytecode:
%s)rrrr
rrrrrrr�assertNotInBytecodes



��z$BytecodeTestCase.assertNotInBytecodeN)�__name__�
__module__�__qualname__r
rrrrrrrr	s
r)Zunittestrr�objectrZTestCaserrrrr�<module>s