Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
numpy
/
testing
/
tests
/
__pycache__
/
File Content:
test_decorators.cpython-37.pyc
B <�Fd� � @ s� d dl mZmZmZ d dlZd dlmZmZmZm Z m Z mZ dd� Zdd� Z G dd � d e�Zd d� Zdd � Zdd� Zdd� Zdd� Zedkr�e � dS )� )�division�absolute_import�print_functionN)�dec�assert_� assert_raises�run_module_suite�SkipTest�KnownFailureExceptionc C s t jdd� �} t| j� d S )Nc S s d S )N� )�x�y�zr r �V/opt/alt/python37/lib64/python3.7/site-packages/numpy/testing/tests/test_decorators.py� slow_func s ztest_slow.<locals>.slow_func)r Zslowr )r r r r � test_slow s r c C sX t �� dd� �} t �d�dd� �}t �d�dd� �}t| j� t|j� t|j � d S ) Nc S s d S )Nr )�ar r r � f_default s z!test_setastest.<locals>.f_defaultTc S s d S )Nr )r r r r �f_istest s z test_setastest.<locals>.f_istestFc S s d S )Nr )r r r r �f_isnottest s z#test_setastest.<locals>.f_isnottest)r Z setastestr Z__test__)r r r r r r �test_setastest s r c @ s e Zd ZdS )�DidntSkipExceptionN)�__name__� __module__�__qualname__r r r r r ! s r c C s� t �d�dd� �} y| d� W n. tk r: td��Y n tk rL Y nX t �d�dd� �}y|d� W n. tk r� Y n tk r� td ��Y nX d S ) NTc S s t �d S )N)r )r r r r �f1% s z)test_skip_functions_hardcoded.<locals>.f1r zFailed to skipFc S s t �d S )N)r )r r r r �f20 s z)test_skip_functions_hardcoded.<locals>.f2zSkipped when not expected to)r �skipifr � Exceptionr )r r r r r �test_skip_functions_hardcoded$ s r c s� � fdd�} t �| �dd� �}yd� |d� W n. tk rJ td��Y n tk r\ Y nX t �| �dd � �}yd � |d� W n. tk r� Y n tk r� td��Y nX d S )Nc s � dkS )Nzskip me!r r )� skip_flagr r �skip_tester= s z1test_skip_functions_callable.<locals>.skip_testerc S s t �d S )N)r )r r r r r @ s z(test_skip_functions_callable.<locals>.f1zskip me!r zFailed to skipc S s t �d S )N)r )r r r r r L s z(test_skip_functions_callable.<locals>.f2zfive is right out!zSkipped when not expected to)r r r r r )r! r r r )r r �test_skip_functions_callable<