summaryrefslogtreecommitdiff
path: root/numpy/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Update conftest for hypothesisRohit Goswami2023-04-161-1/+1
|
* TST, BUG: add a test for unary ufuncs, fix condition for indexed loopsmattip2023-02-071-0/+2
|
* TST: Improve testing setup by introducing a new `weak_promotion` fixtureSebastian Berg2022-06-151-0/+17
| | | | Unfortunately, this shows that the rational tests are still broken a bit.
* DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-1/+1
|
* TST: Simplify Hypothesis configZac-HD2020-11-151-9/+17
| | | | All configuration is now done in conftest.py, and detection of dev/user mode is based on the presence of pytest.ini in the repo root. See #17390.
* BUG: fix a compile and a test warningmattip2020-08-091-0/+4
|
* Configure hypothesis for np.test()Zac-HD2020-07-231-1/+14
|
* TST: Add slow_pypy supportAnirudh Subramanian2020-04-131-0/+2
|
* Install and configure HypothesisZac-HD2020-02-051-0/+7
|
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* TST: add pytest machinery to specify memory requirements for testsPauli Virtanen2019-12-011-0/+18
|
* BUG: Refcount fixes (#13860)Sebastian Berg2019-07-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: Fix leaking of object descriptor on dtype discovery of `None` * BUG: Fix reference count leak in string discovery code path * BUG: Fix two more datetime related reference count bugs One is leaking only the python integer 1, the other a descriptor. * BUG: Fix bugs in vectorized string functions error paths Fixes reference count issues (a leak) in TestVecString::test_non_existent_method and TestVecString::test_non_string_array * BUG: Fix Reference count leak in in128 C-level tests * BUG: Fix refcount leak in advanced indexing error path * BUG,MAINT: Refactor indexing dtypes handling in mapiter constructor Using borrowed references for the dtypes seems much easier to get the reference counts right. * BUG: Reference leaks in deprecated datetime with timezone coercion * BUG: Refcount issue in nonzero 0-d path * BUG: Fix ufunc.at dtype refcount handling in resolver * BUG: Fix reference count in nditer python op_axes setup * BUG: Reference leak in writebackifcopy non-array error path * BUG: Add missing DECREF in ufunc with dtype type resolution * BUG: Reference count bugs in io functions * BUG: Reference count loss in as_c_array C-side tests * BUG: Leaking of method in object method based ufunc loops The function could possibly be optimized nicely by checking that the method will be the same because the types are identical. OTOH, that may not be correct in dynamically adapted types. * TST: Clean up cyclic ctypes reference to simplify leak debugging If we do not clean it up in this test, the collection can take so long that it affects the following tests when running with reference leak debugging tools (pytest-leaks). * BUG: Reference count of raw data for 0-sized unpickling * TST: Mark tests which must leak references It really may be time to remove this, considering how annoying this is, may want to think about getting rid of that behaviour. Could probably write a multiearraytests C-side function instead. * BUG: Fix refcount leaks in arr.getield and setfield error paths * BUG: Fix refcount issue in wheremask This fix is not the prettiest, since it relies on the wheremask to be formatted to boolean beforehand correctly. * TST: Reset StringConvert after mutating it in tests Or maybe just mark the test? * BUG: Fix missing static for npy_cache_import in umath funcs.inc.src * BUG: Fix refcount in multiternew error path * BUG: Fix npy_ObjectGCD and LCM reference counting * BUG: Decrement already wrapped outputs on failure This is not super pretty, but not sure how to do it much better right now. * FIXUP: iotools StringConverter._mapper * FIXUP: as_c_array tests * FIXUP: String/dtype discovery comment * FIXUP: Nonzero comment * FIXUP: mapiternew -- check error return of dtype creation In principle, at least at this time, this is not possible
* TST: Register markers in conftest.py.Charles Harris2019-05-131-0/+7
| | | | | Register the markers 'slow' and 'valgrind' in the `conftest.py` file instead of `pytest.ini` as the latter file is not always present.
* MAINT: remove unused stdlib importsEmil Hessman2018-09-301-2/+0
|
* TST: Switch to using pytest markersCharles Harris2018-04-041-26/+2
| | | | | | | | | | | Use standard pytest markers everywhere in the numpy tests. At this point there should be no nose dependency. However, nose is required to test the legacy decorators if so desired. At this point, numpy test cannot be run in the way with runtests, rather installed numpy can be tested with `pytest --pyargs numpy` as long as that is not run from the repo. Run it from the tools directory or some such.
* TST: Rename some compiled c test modulesCharles Harris2018-03-241-2/+2
| | | | | | The renamed C modules provide low level functions for testing. The rename marks them as private functions and makes them invisible to pytest by default.
* ENH: do backward compatibility correctlyxoviat2017-12-221-0/+11
|
* MAINT: Fix nose features to work on pytestxoviat2017-12-221-0/+21
|
* TST: add FPU mode check also for pytestPauli Virtanen2017-08-161-0/+54