%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_compat.cpython-312.pyc |
� Ϫ�f�F � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m Z mZmZm Z mZmZmZmZmZmZmZ ddlmZ ddlmZ ddlmZmZ G d� d e� Z G d � de� Z G d� d e� Z G d� de� Ze G d� d� � Z G d� de� Z! G d� de� Z" G d� de� Z# G d� de� Z$ G d� de� Z% G d� de� Z& G d� de� Z' G d � d!e� Z( G d"� d#e� Z)y)$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 �: � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z y ) �IOTypeTestsz? Test cases for determining a file-like object's type. c �f � | j t t j � � t � y)z= An L{io.StringIO} accepts and returns text. N)�assertEqualr �io�StringIO�str��selfs �:/usr/lib/python3/dist-packages/twisted/test/test_compat.py�test_3StringIOzIOTypeTests.test_3StringIO) s � � ������� �.��4� c �f � | j t t j � � t � y)z= An L{io.BytesIO} accepts and returns bytes. N)r r r �BytesIO�bytesr s r � test_3BytesIOzIOTypeTests.test_3BytesIO/ s � � ����� � ��-�u�5r c � � t | j � d� 5 }| j t |� t � ddd� y# 1 sw Y yxY w)zT A file opened via 'io.open' in text mode accepts and returns text. �wN)�open�mktempr r r �r �fs r �test_3openTextModezIOTypeTests.test_3openTextMode5 s? � � �$�+�+�-�� %� -�����V�A�Y��,� -� -� -�� � A�A c � � t | j � d� 5 }| j t |� t � ddd� y# 1 sw Y yxY w)zW A file opened via 'io.open' in binary mode accepts and returns bytes. �wbN)r'