⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
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