o
    g                     @   sZ   d dl Z d dlZd dlZd dlmZ d dlmZ G dd dejZe	dkr+e
  dS dS )    N)	os_helper)assert_python_okc                   @   s   e Zd Zdd ZdS )TestLLTracec                 C   s`   t tjddd}| tjtj |td ttj W d    d S 1 s)w   Y  d S )Nwzutf-8)encodingz            import code

            console = code.InteractiveConsole()
            console.push('__ltrace__ = 1')
            console.push('a = [1, 2, 3]')
            console.push('a[0] = 1')
            print('unreachable if bug exists')
            )	openr   ZTESTFNZ
addCleanupunlinkwritetextwrapdedentr   )selffd r   G/Users/admin/.pyenv/versions/3.10.0/lib/python3.10/test/test_lltrace.py1test_lltrace_does_not_crash_on_subscript_operator   s
   
"z=TestLLTrace.test_lltrace_does_not_crash_on_subscript_operatorN)__name__
__module____qualname__r   r   r   r   r   r   	   s    r   __main__)osr
   ZunittestZtest.supportr   Ztest.support.script_helperr   ZTestCaser   r   mainr   r   r   r   <module>   s    