Vfi" dZddlZddlZddlZddlZddlmZddlmZddl Z ddl Z ddl Z ddl m Z ddlmZ ddlmZdZn #e$rd ZYnwxYw ddlZdZn #e$rd ZYnwxYwdaiZe jejejd e jd dd e jd ddddee j ejej!e"ddZ#e j$ej%e#rd nd dej&d<dZ'dZ(dZ)erej*Z)dZ+dZ,e j-ddZ.e j/dddZ0e j/ddZ1ered*dZ2e2e_3ej45dej45d de_6ddl7Z7e7j8e7j9ze_:e j;j<ej=d!<hd"e_>d#d#d$d%d&d'd(e_?gd)e_@dSdS)+z= Pytest configuration and fixtures for the Numpy test suite. N)contextmanager)Path) get_fpu_mode) NOGIL_BUILD) dt_configTFz .hypothesisz numpy-profile)namedeadline print_blobznp.test() profile)rr r database derandomizesuppress_health_checkz..z pytest.ini1NUMPY_EXPERIMENTAL_DTYPE_APIcL|dd|dd|dd|ddtsD|dd|dd|dddSdS) Nmarkersz=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_linePARALLEL_RUN_AVALIABLE)configs =c:\PYTHON\DbComparer\venv\Lib\site-packages\numpy/conftest.pypytest_configurer>s IGIII IDFFF I)+++ I6888 !    !     Q     F        c8|dddddS)Nz--available-memorystorezSet 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.)actiondefaulthelp) addoption)parsers rpytest_addoptionrTs5 )'4,.....rc`|jd}||tjd<dSdS)Navailable_memoryNPY_AVAILABLE_MEM)r getoptionosenviron)session available_mems rpytest_sessionstartr(cs9N,,-?@@M *7 &'''! rctrtstjr|}||dddd|d|d|d|d|d |d |d tjd d dSdSdSdS)NzGIL re-enabled=T)sepredboldz3The 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) returncode) rgil_enabled_at_startsys_is_gil_enabledensure_newlinesectionlinepytestexit)terminalreporter exitstatusrtrs rpytest_terminal_summaryr<is A/ AC4G4I4I A   #$T BBB EFFF MNNN KLLL   MNNN LMMM LMMM 1a@@@@@@ A A A A A Ar)tryfirstcPt}t|an|tkrt|ft|<|at|jjtt jdz dz kr5|tj ddSdS)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. Nf2pytestszf2py tests are thread-unsafe)reason) r _old_fpu_mode_collect_resultsrfspathparent__file__ add_markerr7mark thread_unsafe)itemmodes rpytest_itemcollectedrLxs >>D   "/!6  DK4>>#86#AG#KKK  111233 4 4 4 4 4LKrfunction)scopeautousec#Kt}dVt}||krtd|dd|ddt|j}||\}}td|dd|dddS)zC Check FPU precision mode was not changed during the test. Nz FPU precision mode changed from z#xz to z during the testz when collecting the test)rAssertionErrorrCgetnode)requestold_modenew_modecollect_results rcheck_fpu_moderXs ~~H EEE~~H8>Q>> (=>>>?? ?&))',77N!+(GQGG (FGGGHH H"!r)rOct|d<dS)Nnp)numpy)doctest_namespaces radd_npr]s#drc#>Kgd}d|}ddg}d|}tj5tjdt|tjdt |dVddddS#1swxYwYdS)z4Filter out the wall of DeprecationWarnings. ) zThe numpy.linalg.linalgzThe numpy.fft.helperdep_util pkg_resourcesznumpy.core.umath msvccompilerzDeprecated callz numpy.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 encounteredignore)categorymessageN)joinwarningscatch_warningsfilterwarningsDeprecationWarningRuntimeWarning)testmsgsmsgmsgs_rmsg_rs rwarnings_errors_and_rngrqs     hhtnn ( (     $ & &    ##5s      #>5     EEE                  s=BBBz#uninitializedz# uninitialized StringDType> numpy.saveznumpy.matlib.saveznumpy.__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$r2tempfilerg contextlibrpathlibr hypothesisr7r[numpy._core._multiarray_testsrnumpy.testing._private.utilsrscipy_doctest.conftestr HAVE_SCPDTModuleNotFoundErrorpytest_run_parallelrrBrC configurationset_hypothesis_home_dirpathrf gettempdirsettingsregister_profilelist HealthCheckdirnamerF _pytest_ini load_profileisfiler%rrr1r3r(r<hookimplrLfixturerXr]rquser_context_mgr rndm_markersadd strict_checkdoctestNORMALIZE_WHITESPACEELLIPSIS optionflagsdtypesrrcheck_namespaceskiplistpytest_extra_xfailpytest_extra_ignorerrrs %%%%%% 666666444444000000JJJJJ#!###"#  00GLL$$&& 66 $$ 4D% $$  dTt$z566%gll27??844dLII  w~~k22KOO8K .1 )*   ,...1.3.00888 A A A$44 40j$///HH0/H&$$$N   ^ F"9I/000 0111"INNN#87;KKI05|/GIm,I"$%''5D"L* $$I %%%I!!!QNNs#AA  A AA A