Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
conftest.cpython-313.pyc69 linesDownload Raw Back to __pycache__
1�

2z�j�"�3�:�SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	r	SSK4r5SSKrSSKJ
r
 SSKJr SSKJr SrSSKrSrSq0r\	R0R3\R4R7\R8"5S655 \	R:R=SSSS9 \	R:R=S
SSSS\"\	R@5S9 \R4R7\R4RC\"5SS5r#\	R:RI\R4RK\#5(aSOS
5 S\RLS'Sr'Sr(Sr)\(a\RT"5r)Sr+Sr,\7RZ"SS9S5r.\8R^"SSS9S5r0\9R^"SS9S5r1\(a�\S*Sj5r2\2\l3\RhRkS5 \RhRkS 5 S\l6SSK7r7\7Rp\7Rr-\l:\RvRx\RzS!'1S"k\l>S#S#S$S%S&S'S(.\l?/S)Q\l@gg!\a S	rGNJf=f!\a S	rGNRf=f)+z=10Pytest configuration and fixtures for the Numpy test suite.11�N)�contextmanager)�Path)�get_fpu_mode)�NOGIL_BUILD)�	dt_configTFz.hypothesisz
numpy-profile)�name�deadline�12print_blobznp.test() profile)rr	r13�database�derandomize�suppress_health_checkz..z14pytest.ini�1�NUMPY_EXPERIMENTAL_DTYPE_APIc��URSS5 URSS5 URSS5 URSS5 [(d7URSS5 URSS5 URSS5 gg)	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.zOparallel_threads(n): run the given test function in parallel using `n` threads.zCiterations(n): run the given test function `n` times in each threadz8thread_unsafe: mark the test function as single-threaded)�addinivalue_line�PARALLEL_RUN_AVALIABLE)�configs �TD:\code\apps\devtools\python\user_packages\Python313\site-packages\numpy/conftest.py�pytest_configurer>s���15���I�G�I�16���I�D�F�17���I�)�+�18���I�6�8�!�!����	�
!�	19�	���	�Q�	20�	���	�F�	21�"�c�(�URSSSSS9 g)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_addoptionrTs!��22���)�'�4�,��.rc�h�URRS5nUbU[RS'gg)N�available_memory�NPY_AVAILABLE_MEM)r�	getoption�os�environ)�session�
available_mems  r�pytest_sessionstartr(cs1���N�N�,�,�-?�@�M�� �*7��23�24�&�'�!rc���[(a�[(d�[R"5(a�UnUR	5 URSSSSS9 UR
S5 UR
S5 UR
S5 UR
S5 UR
S	5 UR
S255 UR
S5 [R"SS
S9 gggg)NzGIL re-enabled�=T)�sep�red�boldz3The GIL was re-enabled at runtime during the tests.z;This can happen with no test failures if the RuntimeWarningz9raised by Python when this happens is filtered by a test.�z;Please ensure all new C modules declare support for runningz:without the GIL. Any new tests that intentionally imports z:code that re-enables the GIL should do so in a subprocess.zGIL re-enabled during tests�)�26returncode)	r�gil_enabled_at_start�sys�_is_gil_enabled�ensure_newline�section�line�pytest�exit)�terminalreporter�27exitstatusr�trs    r�pytest_terminal_summaryr<is����{�/�/�C�4G�4G�4I�4I�
��28����29�30�31�#��$�T�32�B�33���E�F�34���M�N�35���K�L�36�����37���M�N�38���L�M�39���L�M����1�a�@�5J�/�{r)�tryfirstc�<�[5n[cUqOU[:wa[U4[U'Uq[UR5R40[[5R41S-S-:Xa-UR[RRSS95 gg)z�42Check FPU precision mode was not changed during test collection.43 44The clumsy way we do it here is mainly necessary because numpy45still uses yield tests, which can execute code at test collection46time.47N�f2py�testszf2py tests are thread-unsafe)�reason)r�
_old_fpu_mode�_collect_resultsr�fspath�parent�__file__�48add_markerr7�mark�
thread_unsafe)�item�modes  r�pytest_itemcollectedrLxs����>�D����
�	
��	�"/��!6�����
��D�K�K����4��>�#8�#8�6�#A�G�#K�K�������1�1�1�2�3�	4�Lr�function)�scope�autousec#��# �[5nSv� [5nX:wa[SUSSUSS35e[RUR5nUbUup[SUSSUSS35eg7f)z;49Check FPU precision mode was not changed during the test.50Nz FPU precision mode changed from z#xz to z during the testz when collecting the test)r�AssertionErrorrC�get�node)�request�old_mode�new_mode�collect_results    r�check_fpu_moderX�s����51�~�H�	��~�H����?���}�D� (��}�,<�>�?�	?�&�)�)�'�,�,�7�N��!�+����?���}�D� (��}�,E�G�H�	H�"�s�A-A/)rOc��[US'g)N�np)�numpy)�doctest_namespaces r�add_npr]�s
��#��d�rc#�.# �/SQnSRU5nSS/nSRU5n[R"5 [R"S[US9 [R"S[52US9 Sv� SSS5 g!,(df   g=f7f)z4Filter out the wall of DeprecationWarnings.53        )
zThe numpy.linalg.linalgzThe numpy.fft.helper�dep_util�
pkg_resourcesznumpy.core.umath�msvccompilerzDeprecated callz54numpy.corezImporting from numpy.matlibzThis function is deprecated.zData type alias 'a'zArrays of 2-dimensional vectorszANumPy warning suppression and assertion utilities are deprecated.�|zinvalid value encounteredzdivide by zero encountered�ignore)�category�messageN)�join�warnings�catch_warnings�filterwarnings�DeprecationWarning�RuntimeWarning)�test�msgs�msg�msgs_r�msg_rs     r�warnings_errors_and_rngrq�s����
55���h�h�t�n��
(�(�56������ ��
�
$�
$�
&��#�#��#5�s�
�
�#�#��>�5�
�
�'�
&�
&�s�AB�9B�;	B�57B�Bz#uninitializedz# uninitialized�StringDType>�numpy.savez�numpy.matlib.savez�numpy.__array_namespace_info__�%numpy.matlib.__array_namespace_info__r.zneeds pandasz#errors out in /testing/overrides.pyz(.. testcode:: admonitions not understoodzmanipulates warnings)zhow-to-verify-bug.rstzc-info.ufunc-tutorial.rstzbasics.interoperability.rstzbasics.dispatch.rstzbasics.subclassing.rstzmisc.rst)znumpy/distutilsznumpy/_core/cversions.pyznumpy/_pyinstallerznumpy/random/_examplesz"numpy/f2py/_backends/_distutils.py)N)A�__doc__r$r2�tempfilerg�58contextlibr�pathlibr�59hypothesisr7r[�numpy._core._multiarray_testsr�numpy.testing._private.utilsr�scipy_doctest.conftestr�60HAVE_SCPDT�ModuleNotFoundError�pytest_run_parallelrrBrC�
configuration�set_hypothesis_home_dir�pathrf�61gettempdir�settings�register_profile�list�HealthCheck�dirnamerF�_pytest_ini�load_profile�isfiler%rrr1r3r(r<�hookimplrL�fixturerXr]rq�user_context_mgr�rndm_markers�add�strict_check�doctest�NORMALIZE_WHITESPACE�ELLIPSIS�optionflags�dtypesrr�check_namespace�skiplist�pytest_extra_xfail�pytest_extra_ignore�rr�<module>r�s����62�63���%���
��6�4��0��J�#��!���
������0�0��G�G�L�L��$�$�&�
�6�����$�$�	�4�D�%�����$�$�	�
�d�T�t��z�5�5�6�%���g�g�l�l�2�7�7�?�?�8�4�d�L�I��64��� � ��w�w�~�~�k�2�2�O�8K��65.1��66�67�)�*�68�,.�����.�.�0��8�A����$��4� �4�0���j�$�/�H�0�H�&�����$��$��� �� �F"9�I�������/�0�
�����0�1�"�I���#�8�8�7�;K�;K�K�I��05�|�|�/G�/G�I���m�,��I��"$�%'�'5�D�"L�*�
$�I� �%�I�!�Q��k���J����#�"��#�s#�I?�J�?J�69J�J�J
codekingpro/portable-devtools · Team Ai