ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/__pycache__/conftest.cpython-311.pyc

�

�܋f�
�\�dZddlZddlZddlZddlZddlZddlmZdaiZ	ej
�ej�
ej��d����ej�ddd���ej�dddddeej���	��ej�
ej�e��d
d��Zej�ej�e��rdnd��dejd
<d�Zd�Zd�Zej��d���Zejdd���d���Zejd���d���Z ejd���d���Z!ejddg���d���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)rrr�database�derandomize�suppress_health_checkz..z
pytest.ini�1�NUMPY_EXPERIMENTAL_DTYPE_APIc��|�dd��|�dd��|�dd��|�dd��dS)N�markersz=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.)�addinivalue_line)�configs �a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/conftest.py�pytest_configurer.s���
���I�G�I�I�I�
���I�D�F�F�F�
���I�)�+�+�+�
���I�6�8�8�8�8�8�c�8�|�dddd���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)�	addoption)�parsers r�pytest_addoptionr9s5��
���)�'�4�,��.�.�.�.�.rc�`�|j�d��}|�|tjd<dSdS)N�available_memory�NPY_AVAILABLE_MEM)r�	getoption�os�environ)�session�
available_mems  r�pytest_sessionstartr#Cs9���N�,�,�-?�@�@�M�� �*7��
�&�'�'�'�!� rc�x�t��}t�|adS|tkrt|ft|<|adSdS)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�modes  r�pytest_itemcollectedr)JsH���>�>�D����
�
�
�	
��	�	�"/��!6�����
�
�
�
�	r�function)�scope�autousec#�.K�t��}dV�t��}||kr#td�||�����t�|j��}|�(|\}}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&�get�node)�request�old_mode�new_mode�collect_results    r�check_fpu_moder6^s�����
�~�~�H�	�E�E�E��~�~�H��8����0�06��x��0J�0J�L�L�	L�&�)�)�'�,�7�7�N��!�+���(��9�9?���@H�:J�:J�K�K�	K�"�!r)r,c��t|d<dS)N�np)�numpy)�doctest_namespaces r�add_npr;ss��#��d���rc�2�|�dd��dS)N�PYTHONHASHSEED�0)�setenv)�monkeypatchs r�	env_setuprAws�����'��-�-�-�-�-rF)�paramsc#��K�tj��}|jrtjd��ntjd��|jV�tj|��dS)z�
    Fixture to ensure "legacy" promotion state or change it to use the new
    weak promotion (plus warning).  `old_promotion` should be used as a
    parameter in the function.
    �
weak_and_warn�legacyN)r9�_get_promotion_state�param�_set_promotion_state)r2�states  r�weak_promotionrJ|sj����
�&�(�(�E��}�-�
�"�?�3�3�3�3�
�"�8�,�,�,�
�-����	��u�%�%�%�%�%r)#�__doc__r�tempfile�
hypothesis�pytestr9�numpy.core._multiarray_testsrr%r&�
configuration�set_hypothesis_home_dir�path�join�
gettempdir�settings�register_profile�list�HealthCheck�dirname�__file__�_pytest_ini�load_profile�isfiler rrr#�hookimplr)�fixturer6r;rArJ�rr�<module>ras�����
�	�	�	���������
�
�
�
�����5�5�5�5�5�5��
�����0�0��G�L�L�$��$�&�&�
�6�6������$�$�	�4�D�%������$�$�	�
�d�T�t��$�z�5�6�6�%�����g�l�l�2�7�?�?�8�4�4�d�L�I�I��
�� � ��w�~�~�k�2�2�K�O�O�8K����
.1��
�)�*�8�8�8�.�.�.�8�8�8�����������&���j�$�/�/�/�K�K�0�/�K�(�������$�$���$��������.�.���.�����e�}�%�%�%�
&�
&�&�%�
&�
&�
&r

Zerion Mini Shell 1.0