�
�(�g� � �� � d Z ddlZddlZddlZddlmZmZmZ e� Z G d� dej � Z G d� dej � Z G d� d e� Z
G d
� de� Z G d� d
e� Zy)zGbytecode_helper - support tools for testing correct bytecode generation� N)�compiler_codegen�optimize_cfg�assemble_code_objectc �* � e Zd ZdZd� Zefd�Zefd�Zy)�BytecodeTestCasez1Custom assertion methods for inspecting bytecode.c �x � t j � }t j ||�� |j � S )N)�file)�io�StringIO�dis�getvalue)�self�co�ss �3/usr/lib/python3.12/test/support/bytecode_helper.py�get_disassembly_as_stringz*BytecodeTestCase.get_disassembly_as_string
s' |