← Back
Editing: test_data.cpython-311.pyc
� d�c� � �� � d dl mZ d dlmZ d dlmZ d dlmZmZm Z m Z d dlmZm Z d dlZd dlZ d dlZn# e$ r ed� � �w xY wej Zd� Z G d � d � � Zd� ZdS )� )�registry)�data_fetcher)�_clear_cache)�ascent�face�electrocardiogram�download_all)�assert_equal�assert_almost_equalNzsMissing optional dependency 'pooch' required for scipy.datasets module. Please use pip or conda to install 'pooch'.c �t � t j � | � � sdS t j | � � |k S )z1Check if the provided path has the expected hash.F)�os�path�exists�pooch� file_hash)r � expected_hashs �@/usr/lib/python3/dist-packages/scipy/datasets/tests/test_data.py� _has_hashr s2 � � �7�>�>�$��� ��u��?�4� � �M�1�1� c �\ � e Zd Z ej dd�� � d� � � Zd� Zd� Zd� Zd� Z d S ) �TestDatasets�moduleT)�scope�autousec # �. K � t � � d V � d S �N)r ��selfs r �test_download_allzTestDatasets.test_download_all s � � � � ���� �����r c � � t t j t � � � � t t � � k sJ �d S r )�lenr �listdir�data_dirr r s r �test_existence_allzTestDatasets.test_existence_all&