HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/support/__pycache__/bytecode_helper.cpython-311.opt-1.pyc
�

��Vc���\�dZddlZddlZddlZe��ZGd�dej��ZdS)zGbytecode_helper - support tools for testing correct bytecode generation�Nc�,�eZdZdZd�Zefd�Zefd�ZdS)�BytecodeTestCasez1Custom assertion methods for inspecting bytecode.c�|�tj��}tj||���|���S)N)�file)�io�StringIO�dis�getvalue)�self�co�ss   �0D:\Python311\Lib\test\support\bytecode_helper.py�get_disassembly_as_stringz*BytecodeTestCase.get_disassembly_as_strings0���K�M�M�����������z�z�|�|��c��tj|��D]%}|j|kr|tus|j|kr|cS�&|�|��}|tur|�d|��}n
d}||||fz}|�|��dS)zAReturns instr if opname is found, otherwise throws AssertionErrorz not found in bytecode:
z!(%s,%r) not found in bytecode:
%sN)r	�get_instructions�opname�_UNSPECIFIED�argvalr�fail�r�xrr�instr�disassembly�msgs       r�assertInBytecodez!BytecodeTestCase.assertInBytecodes����)�!�,�,�	!�	!�E��|�v�%�
!��\�)�!�U�\�V�-C�!� �L�L�L���4�4�Q�7�7���\�!�	6�5;�V�V�[�[�I�C�C�6�C�����5�5�C��	�	�#�����rc��tj|��D]r}|j|kre|�|��}|tur|�d|��}|�|���H|j|krd}||||fz}|�|���sdS)z(Throws AssertionError if opname is foundz occurs in bytecode:
z(%s,%r) occurs in bytecode:
%sN)r	rrrrrrrs       r�assertNotInBytecodez$BytecodeTestCase.assertNotInBytecodes����)�!�,�,�		#�		#�E��|�v�%�
#�"�<�<�Q�?�?���\�)�#�:@�&�&�+�+�N�C��I�I�c�N�N�N�N��\�V�+�#�;�C����� =�=�C��I�I�c�N�N�N��		#�		#rN)�__name__�
__module__�__qualname__�__doc__rrrr�rrrr	s\������;�;����
2>�����5A�#�#�#�#�#�#rr)r"�unittestr	r�objectr�TestCaserr#rr�<module>r'sh��M�M�����
�
�
�
�	�	�	�	��v�x�x��!#�!#�!#�!#�!#�x�(�!#�!#�!#�!#�!#r