a
    ze                     @   sV   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rRe
  dS )    N)support)assert_python_okc                   @   s   e Zd Zdd ZdS )TestLLTracec                 C   sZ   t tjd:}| tjtj |td t	tj W d    n1 sL0    Y  d S )Nwz            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osunlinkwritetextwrapdedentr   )selffd r   '/usr/lib/python3.9/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__)r   r
   Zunittesttestr   Ztest.support.script_helperr   ZTestCaser   r   mainr   r   r   r   <module>   s   