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.7/test/__pycache__/bytecode_helper.cpython-37.pyc
B

��g@�@s8dZddlZddlZddlZe�ZGdd�dej�ZdS)zGbytecode_helper - support tools for testing correct bytecode generation�Nc@s0eZdZdZdd�Zefdd�Zefdd�ZdS)	�BytecodeTestCasez1Custom assertion methods for inspecting bytecode.cCst��}tj||d�|��S)N)�file)�io�StringIO�dis�getvalue)�self�co�s�r�0/usr/local/lib/python3.7/test/bytecode_helper.py�get_disassembly_as_stringsz*BytecodeTestCase.get_disassembly_as_stringcCstx2t�|�D]$}|j|kr|tks,|j|kr|SqW|�|�}|tkrTd||f}nd}||||f}|�|�dS)z=Returns instr if op is found, otherwise throws AssertionErrorz%s not found in bytecode:
%sz!(%s,%r) not found in bytecode:
%sN)r�get_instructions�opname�_UNSPECIFIED�argvalr
�fail)r�xrr�instr�disassembly�msgrrr�assertInBytecodes

z!BytecodeTestCase.assertInBytecodecCshxbt�|�D]T}|j|kr|�|�}|tkr:d||f}n|j|krVd}||||f}|�|�qWdS)z$Throws AssertionError if op is foundz%s occurs in bytecode:
%sz(%s,%r) occurs in bytecode:
%sN)rrrr
rrr)rrrrrrrrrr�assertNotInBytecodes


z$BytecodeTestCase.assertNotInBytecodeN)�__name__�
__module__�__qualname__�__doc__r
rrrrrrrr	sr)rZunittestrr�objectrZTestCaserrrrr�<module>s