| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/numpy/lib/tests/__pycache__/ |
Upload File : |
�
���cK) � � � d dl Z d dlZd dlmZmZmZ d dlmZ d dlm c m
Z d dlm
Z
mZmZ d dlmZ d dlmZ d dlmZ d%d�Zdad� Zd � Zd
ZdZdZd
Zg d�ZdZ d� Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z( G d� d� � Z) G d� d� � Z* G d� d� � Z+ G d� d� � Z, G d � d!� � Z- G d"� d#� � Z.d$� Z/dS )&� N)�mkdtemp�mkstemp�NamedTemporaryFile)�rmtree)�assert_�assert_equal�
assert_raises)�urlparse)�URLErrorc �h � | t � � k rt d�� � }|S t d� � �)z$Stub to replace urlopen for testing.�urltmp_)�prefixzName or service not known)�
valid_httpurlr r )�url�data�tmpfiles �B/usr/lib/python3/dist-packages/numpy/lib/tests/test__datasource.py�urlopen_stubr s5 � �
�m�o�o���$�I�6�6�6�����2�3�3�3� c �@ � t j at t _ d S �N)�urllib_request�urlopen�old_urlopenr � r r �setup_moduler s � � !�(�K�)�N���r c �( � t t _ d S r )r r r r r r �teardown_moduler ! s � �(�N���r zhttp://www.google.com/z
index.htmlzhttp://fake.abc.web/site/zfake.txt)z/etc/shadowz../../shadowz
..\system.datzc:\windows\system.dats three is the magic numberc �Z � t dd| d�� � \ }}t j |� � |S )N�.txt�dstmp_T)�suffixr �dir�text)r �os�close��filedir�fd�paths r �valid_textfiler+ 2 s. � ��f�X�7��N�N�N�H�B���H�R�L�L�L��Kr c � � t dd| �� � \ }}t j |� � t j |� � |S )Nr r! )r"