File: //usr/local/lib/python3.10/test/__pycache__/test_bz2.cpython-310.opt-2.pyc
o
�i� � @ sd 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 dlZe�d�Zd d lmZmZmZ dad
d� ZG dd
� d
ej �Z!G dd� de!�Z"G dd� de!�Z#G dd� de!�Z$G dd� de!�Z%G dd� de!�Z&dd� Z'e(dkr�e�)� dS dS )� )�support)�
bigmemtest�_4GN)�BytesIO�DEFAULT_BUFFER_SIZE)�
import_helper)�threading_helper)�unlink�bz2)�BZ2File�
BZ2Compressor�BZ2Decompressorc C s4 t d u rtt�d��a t rtjdg| d�S t�| �S )NZbunzip2)�input)�has_cmdline_bunzip2�bool�shutil�which�
subprocess�check_outputr
�
decompress)�data� r �*/usr/local/lib/python3.10/test/test_bz2.py�ext_decompress s
r c @ s� e Zd Z g d�Zd�e�ZdZdZdZdZ e
d�Ze�e
j�e�e
j�e��d��D ]*Zeed ��Ze e�ee�e d
� �7 Z W d
� n1 sJw Y e dkrU nq+ejedd�Zd
d� Zdd� Zd
S )�BaseTest)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"