Your IP : 216.73.216.85


Current Path : /opt/alt/python35/lib64/python3.5/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/__pycache__/bytecode_helper.cpython-35.opt-2.pyc



���]@�@sJddlZddlZddlZe�ZGdd�dej�ZdS)�Nc@s:eZdZdd�Zedd�Zedd�ZdS)�BytecodeTestCasecCs)tj�}tj|d|�|j�S)N�file)�io�StringIO�dis�getvalue)�self�co�s�r�4/opt/alt/python35/lib64/python3.5/bytecode_helper.py�get_disassembly_as_stringsz*BytecodeTestCase.get_disassembly_as_stringcCs�xEtj|�D]4}|j|kr|tks@|j|kr|SqW|j|�}|tkrvd||f}nd}||||f}|j|�dS)Nz%s not found in bytecode:
%sz!(%s,%r) not found in bytecode:
%s)r�get_instructions�opname�_UNSPECIFIED�argvalr
�fail)r�xrr�instr�disassembly�msgrrr�assertInBytecodesz!BytecodeTestCase.assertInBytecodecCs�x�tj|�D]x}|j|kr|j|�}|tkrSd||f}n(|j|kr{d}||||f}|j|�qWdS)Nz%s occurs in bytecode:
%sz(%s,%r) occurs in bytecode:
%s)rrrr
rrr)rrrrrrrrrr�assertNotInBytecodesz$BytecodeTestCase.assertNotInBytecodeN)�__name__�
__module__�__qualname__r
rrrrrrrr	sr)Zunittestrr�objectrZTestCaserrrrr�<module>s