shell bypass 403
o
ab � @ sZ d dl Z d dlZd dlZd dlmZ d dlmZ G dd� dej�Ze dkr+e�
� dS dS )� N)� os_helper)�assert_python_okc @ s e Zd Zdd� ZdS )�TestLLTracec C s` t tjddd��}| �tjtj� |�t�d�� ttj� W d � d S 1 s)w Y d S )N�wzutf-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 ZTESTFNZ
addCleanup�unlink�write�textwrap�dedentr )�self�fd� r �:/usr/local/python-3.10/lib/python3.10/test/test_lltrace.py�1test_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
ZunittestZtest.supportr Ztest.support.script_helperr ZTestCaser r �mainr r r r �<module> s �