HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/lib/python3.11/test/support/__pycache__/
Upload File :
Current File : //proc/self/root/lib/python3.11/test/support/__pycache__/bytecode_helper.cpython-311.pyc
�

*�Kgo��\�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   �3/usr/lib/python3.11/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�-C� �L�L�L���4�4�Q�7�7���\�!�!�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