0x1949 Team - FAZEMRX - MANAGER
Edit File: test_compat.cpython-310.pyc
o �b�F � @ sz d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m Z mZmZm Z mZmZmZmZmZmZmZ ddlmZ ddlmZ ddlmZmZ G dd � d e�ZG d d� de�ZG dd � d e�ZG dd� de�ZeG dd� d��Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd� de�Z$G dd� de�Z%G dd� de�Z&G dd� de�Z'G d d!� d!e�Z(G d"d#� d#e�Z)dS )$z% Tests for L{twisted.python.compat}. � N)�skipIf) �_PYPY�_get_async_param�bytesEnviron�cmp� comparable�execfile� intToBytes�ioType� iterbytes� lazyByteSlice�nativeString� networkString�reraise)�FilePath)�platform)�SynchronousTestCase�TestCasec @ �H e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )�IOTypeTestsz? Test cases for determining a file-like object's type. c C � | � tt�� �t� dS )z= An L{io.StringIO} accepts and returns text. N)�assertEqualr �io�StringIO�str��self� r �:/usr/lib/python3/dist-packages/twisted/test/test_compat.py�test_3StringIO) � zIOTypeTests.test_3StringIOc C r )z= An L{io.BytesIO} accepts and returns bytes. N)r r r �BytesIO�bytesr r r r � test_3BytesIO/ r zIOTypeTests.test_3BytesIOc C �D t | �� d��}| �t|�t� W d � dS 1 sw Y dS )zT A file opened via 'io.open' in text mode accepts and returns text. �wN)�open�mktempr r r �r �fr r r �test_3openTextMode5 � "�zIOTypeTests.test_3openTextModec C r$ )zW A file opened via 'io.open' in binary mode accepts and returns bytes. �wbN)r&