Mini Shell
U
��eg� � , @ sz d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dlmZ d dlmZ zd dlZW n ek
r� dZY nX d dlmZ d dlmZmZmZmZmZmZmZmZm Z m!Z! d dlm"Z" ze!� � d dl#Z$W 5 Q R X W n ek
�r6 dZ$Y nX e
�%ej&dk d�Z'e(ej)d �Z*d
d� Z+dd
� Z,dd� Z-G dd� dej.�Z/G dd� de0�Z1G dd� d�Z2G dd� d�Z3G dd� de3�Z4G dd� de3�Z5G dd� d�Z6G dd� d�Z7d dl8Z8e3e8_3d e3_9e4e8_4d e4_9e5e8_5d e5_9G d!d"� d"e:�Z;G d#d$� d$e3�Z<G d%d&� d&e=�Z>G d'd(� d(e0e>d)�Z?G d*d+� d+e=�Z@d,d-� ZAG d.d/� d/eB�ZCG d0d1� d1eD�ZEedk �r�G d2d3� d3�ZFd4ZGd5ZHd6ZId7ZJd8ZKd9ZLd:ZMd;ZNd<ZOd=ZPd>ZQd?ZRd@ZSdAZTeUeVeWeXeYeZe[e\e]e^e_e`eaebeecedeeefegeheiejekelemeneoepeqereseteuevewexeyeze{e|e}e~ef,Z�dBZ�dCZ�dDdE� Z�G dFdG� dGe
j��Z�G dHdI� dIe
j��Z�G dJdK� dKe
j��Z�G dLdM� dMe0�Z�G dNdO� dOe0�Z�G dPdQ� dQe0�Z�G dRdS� dSe0�Z�G dTdU� dUe0�Z�G dVdW� dWe0�Z�G dXdY� dYe0�Z�G dZd[� d[e0�Z�G d\d]� d]e:�Z�G d^d_� d_e��Z�G d`da� dae��Z�G dbdc� dce��Z�G ddde� dee��Z�G dfdg� dge��Z�G dhdi� die��Z�G djdk� dke��Z�G dldm� dme��Z�G dndo� doe��Z�e�e�e�e�e�e�e�e�e�e�g
Z�G dpdq� dqe��Z�G drds� dse:�a�G dtdu� dut��Z�G dvdw� dwt��Z�G dxdy� dy�Z�G dzd{� d{e
j��Z�G d|d}� d}e
j��Z�G d~d� de
j��Z�G d�d�� d�e
j��Z�d�Z�G d�d�� d�e0�Z�G d�d�� d�e0�Z�d�d�� Z�G d�d�� d��Z�G d�d�� d�e
j��Z�G d�d�� d�e
j��Z�e�d k�rvd d�lm�Z� e�� Z�e(ej)d �D ]�Z�e��e�e��Z�e�d���e��� e(d e�e��d��D ](Z�eBe�e�e�d� � �Z�e�d���e��� �qe�d�� e�� e�d���e��� e�d���e��� e�e�� e�d�� e�� �q�dS )�� N)�dedent)�SimpleCookie)�support)
�
TestFailed�TESTFN�run_with_locale�
no_tracing�_2G�_4G�
bigmemtest�reap_threads�forget�save_restore_warnings_filters)�bytes_typesl z(test is only meaningful on 32-bit builds� c C s0 t �|�D ] \}}}|j| �d�kr
dS q
dS )N�latin-1TF��pickletools�genops�code�decode)r �pickle�op�dummy� r �0/opt/cppython/lib/python3.8/test/pickletester.py�opcode_in_pickle5 s r c C s6 d}t �|�D ]"\}}}|j| �d�kr|d7 }q|S )Nr r r r )r r �nr r r r r �count_opcode<