File: //usr/local/lib/python3.7/test/__pycache__/test_imghdr.cpython-37.pyc
B
��g� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZm Z dZ
G dd� dej�ZG dd� dej
�Zedkr|e�� dS ) � N)�findfile�TESTFN�unlink)
)z
python.png�png)z
python.gifZgif)z
python.bmpZbmp)z
python.ppmZppm)z
python.pgmZpgm)z
python.pbmZpbm)z
python.jpgZjpeg)z
python.rasZrast)z
python.sgiZrgb)zpython.tiffZtiff)z
python.xbmZxbm)zpython.webpZwebp)z
python.exrZexrc @ s e Zd Zdd� Zdd� ZdS )�UnseekableIOc C s
t j�d S )N)�io�UnsupportedOperation)�self� r
�,/usr/local/lib/python3.7/test/test_imghdr.py�tell s zUnseekableIO.tellc O s
t j�d S )N)r r )r �args�kwargsr
r
r �seek s zUnseekableIO.seekN)�__name__�
__module__�__qualname__r r r
r
r
r r s r c @ sx e Zd Zedd� �Zdd� Zdd� Zdd� Zd d
� Zdd� Z d
d� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� ZdS )�
TestImghdrc C s4 t ddd�| _t| jd��}|�� | _W d Q R X d S )Nz
python.png�
imghdrdata)�subdir�rb)r �testfile�open�read�testdata)�cls�streamr
r
r �
setUpClass! s zTestImghdr.setUpClassc C s t t� d S )N)r r )r r
r
r �tearDown'