Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_bz2.cpython-311.opt-1.pyc |
�
�Ke� � �� � d dl mZ d dlmZmZ d dlZd dlZd dlmZm Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dlZd dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dlZd dlZ ej d� � Zd d lmZmZmZ dad
� Z G d� dej � � Z! G d
� de!� � Z" G d� de!� � Z# G d� de!� � Z$ G d� de!� � Z% G d� de!� � Z&d� Z'e(dk r ej) � � dS dS )� )�support)�
bigmemtest�_4GN)�BytesIO�DEFAULT_BUFFER_SIZE)�
import_helper)�threading_helper)�unlink�bz2)�BZ2File�
BZ2Compressor�BZ2Decompressorc �� � t �!t t j d� � � � a t rt j dg| �� � S t � | � � S )N�bunzip2)�input)�has_cmdline_bunzip2�bool�shutil�which�
subprocess�check_outputr �
decompress)�datas �7/usr/local/apps/python3/lib/python3.11/test/test_bz2.py�ext_decompressr sR � ��"�"�6�<� �#:�#:�;�;��� $��&� �{�$�?�?�?�?��~�~�d�#�#�#� c �� � e Zd ZdZg d�Zd� e� � ZdZdZdZ dZ
ed� � Z e
j
ej � e
j ej � e� � � � d � � � � D ]WZ eed
� � 5 Ze
e� ee� � e
d� � � z
Z
ddd� � n# 1 swxY w Y e
dk r n�Xe� ed�
� � Zd� Zd� ZdS )�BaseTestzBase for other testcases.)s root:x:0:0:root:/root:/bin/bash
s bin:x:1:1:bin:/bin:
s daemon:x:2:2:daemon:/sbin:
s adm:x:3:4:adm:/var/adm:
s lp:x:4:7:lp:/var/spool/lpd:
s sync:x:5:0:sync:/sbin:/bin/sync
s- shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
s! halt:x:7:0:halt:/sbin:/sbin/halt
s"