관리-도구
편집 파일: test__datasource.cpython-37.pyc
B ��Fd�( � @ s� d dl mZmZmZ d dlZd dlZd dlmZmZm Z d dl mZ d dlm Z mZmZmZ d dlm mZ ejd dkr�d dlmZ d dlmZ d dlmZ n d dlZd dlmZ d dlmZ d5d d �Zdadd� Z d d� Z!dZ"dZ#dZ$dZ%ddddgZ&dZ'dd� Z(dd� Z)dd� Z*dd� Z+d d!� Z,d"d#� Z-d$d%� Z.d&d'� Z/G d(d)� d)e�Z0G d*d+� d+e�Z1G d,d-� d-e�Z2G d.d/� d/e�Z3G d0d1� d1e�Z4G d2d3� d3e�Z5e6d4k�r�e � dS )6� )�division�absolute_import�print_functionN)�mkdtemp�mkstemp�NamedTemporaryFile)�rmtree)�run_module_suite�TestCase�assert_�SkipTest� )�urlparse)�URLErrorc C s$ | t � krtdd�}|S td��dS )z$Stub to replace urlopen for testing.Zurltmp_)�prefixzName or service not knownN)� valid_httpurlr r )�url�data�tmpfile� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/lib/tests/test__datasource.py�urlopen_stub s r c C s t jatt _d S )N)�urllib_request�urlopen�old_urlopenr r r r r �setup# s r c C s t t_d S )N)r r r r r r r �teardown* s r zhttp://www.google.com/z index.htmlzhttp://fake.abc.web/site/zfake.txtz/etc/shadowz../../shadowz ..\system.datzc:\windows\system.dats three is the magic numberc C s"