⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
test
/
support
/
__pycache__
/
View File Name :
bytecode_helper.cpython-310.pyc
o }5ho @ s8 d Z ddlZddlZddlZe ZG dd dejZdS )zGbytecode_helper - support tools for testing correct bytecode generation Nc @ s0 e Zd ZdZdd ZefddZefddZdS ) BytecodeTestCasez1Custom assertion methods for inspecting bytecode.c C s t }tj||d | S )N)file)ioStringIOdisgetvalue)selfcos r 3/usr/lib/python3.10/test/support/bytecode_helper.pyget_disassembly_as_string s z*BytecodeTestCase.get_disassembly_as_stringc C st t |D ]}|j|kr|tu s|j|kr| S q| |}|tu r*d||f }n d}||||f }| | dS )zAReturns instr if opname is found, otherwise throws AssertionErrorz%s not found in bytecode: %sz!(%s,%r) not found in bytecode: %sN)r get_instructionsopname_UNSPECIFIEDargvalr failr xr r instrdisassemblymsgr r r assertInBytecode s z!BytecodeTestCase.assertInBytecodec C sn t |D ]/}|j|kr4| |}|tu r!d||f }| | q|j|kr4d}||||f }| | qdS )z(Throws AssertionError if opname is foundz%s occurs in bytecode: %sz(%s,%r) occurs in bytecode: %sN)r r r r r r r r r r r assertNotInBytecode s z$BytecodeTestCase.assertNotInBytecodeN)__name__ __module____qualname____doc__r r r r r r r r r s r )r unittestr r objectr TestCaser r r r r
s