File: //lib/python3/dist-packages/numpy/lib/tests/__pycache__/test_io.cpython-310.pyc
o
6��a� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZ d dlm
Z
d dlmZmZ d dlmZ d dlZd dlmZmZ d dlmZ d dlZd dlmZ d dlmZmZ d d lmZ d d
l m!Z! d dl"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 d dl1m2Z2 G d
d� de�Z3e j4dkZ5zd dl6Z6dZ7W n e8y� dZ7Y nw zd dl9Z9dZ:W n e8y� dZ:Y nw d8dd�Z;G dd� d�Z<G dd� de<�Z=G dd� de<�Z>G dd� d�Z?G dd� d�Z@G dd� de@�ZAG d d!� d!�ZBG d"d#� d#e@�ZCG d$d%� d%�ZDd&d'� ZEG d(d)� d)�ZFG d*d+� d+�ZGd,d-� ZHd.d/� ZId0d1� ZJd2d3� ZKe jLjMe, d4d5�d6d7� �ZNdS )9� N)�Path)�NamedTemporaryFile)�BytesIO�StringIO)�datetime)�Process�Value)�c_bool)�ConverterError�ConversionWarning��asbytes)�assert_equal)�assert_warns�assert_�assert_raises_regex�
assert_raises�assert_allclose�assert_array_equal�temppath�tempdir�IS_PYPY�HAS_REFCOUNT�suppress_warnings�assert_no_gc_cycles�assert_no_warnings�break_cycles)�requires_memoryc @ s* e Zd ZdZd
dd�Zdd� Zdd� Zd S )�TextIOz�Helper IO class.
Writes encode strings to bytes if needed, reads return bytes.
This makes it easier to emulate files opened in binary mode
without needing to explicitly convert strings to bytes in
setting up the test data.
� c C � t �| t|�� d S �N)r �__init__r
��self�s� r&