summaryrefslogtreecommitdiff
path: root/numpy/_pytesttester.py
Commit message (Collapse)AuthorAgeFilesLines
* BUG: Adding the default pytest doctest runner instead of the ValueError to ↵Brigitta Sipőcz2022-05-211-3/+1
| | | | the np testrunner
* Use catch_warnings(record=True) instead of simplefilter('ignore')Aaron Meurer2021-08-231-1/+1
| | | | | | There is a test that fails in the presence of simplefilter('ignore') (test_warnings.py). catch_warnings(record=True) seems to be a way to get the same behavior without failing the test.
* Remove Python 3.7 checks from the array API codeAaron Meurer2021-08-231-12/+6
| | | | | NumPy has dropped Python 3.7, so these are no longer necessary (and they didn't completely work anyway).
* Fix the tests for Python 3.7Aaron Meurer2021-08-061-6/+12
| | | | | The array_api submodule needs to be skipped entirely, as it uses non-3.7 compatible syntax.
* Make the array API submodule not break the test suiteAaron Meurer2021-08-061-3/+10
| | | | | | The warning is issued on import, which otherwise breaks pytest collection. If we manually import early and ignore the warning, any further imports of the module won't issue the warning again, due to the way Python caches imports.
* ENH: add new function `_opt_info()` to utils provides the optimization info ↵Sayed Adel2021-04-221-14/+2
| | | | of NumPy build
* DOC: Fixing boilerplate code exampleAl-Baraa El-Hag2020-11-241-1/+1
| | | | | _pytesttester.py had either on old implementation or a wrong one Updated it with the current practice
* TST: Simplify Hypothesis configZac-HD2020-11-151-12/+0
| | | | 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.
* Configure hypothesis for np.test()Zac-HD2020-07-231-0/+11
|
* ENH: [6/7] enable multi-platform SIMD compiler optimizationsSayed Adel2020-06-161-0/+15
| | | | | | | | | | | | | | - Add new attributes to umath module * __cpu_baseline__ a list contains the minimal set of required optimizations that supported by the compiler and platform according to the specified values to command argument '--cpu-baseline'. * __cpu_dispatch__ a list contains the dispatched set of additional optimizations that supported by the compiler and platform according to the specified values to command argument '--cpu-dispatch' - Print required and additional optimizations during the run of PytestTester
* MAINT: Make if else clause more readableAnirudh Subramanian2020-04-141-2/+5
|
* TST: Add slow_pypy supportAnirudh Subramanian2020-04-131-1/+4
|
* DEP: deprecate importing numpy/matrixlib.pySeth Troisi2020-01-231-0/+1
|
* MAINT: cleanup _pytesttester.pySeth Troisi2020-01-231-17/+0
|
* MAINT: Remove python2 array_getslice and array_setslice (#15263)Seth Troisi2020-01-071-2/+0
| | | These implemented the __getslice__ and __setslice__ methods in Python 2, which no longer exist in Python 3.
* MAINT: Remove references to non-existent sys.exc_clear()Jon Dufresne2020-01-051-1/+0
| | | | | sys.exc_clear() was removed in Python 3. All internal uses can be removed.
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* 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.
* Fix typos, via a Levenshtein-style correctorBrian Wignall2019-12-191-1/+1
|
* DOC: clarify that PytestTester is non-publicChristopher Whelan2019-08-241-3/+8
|
* DOC: fix example for __call__. See #12451Edgar Giovanni Lepe2018-12-021-11/+5
|
* BUG: Fix matrix PendingDeprecationWarning suppression for pytest 3.8+.Charles Harris2018-09-061-0/+18
| | | | | | | | | | | | | | | Pytest < 3.8 ignored warnings issued during test collection, but that changed in pytest 3.8 and the method NumPy used to suppress the PendingDeprecationWarning for matrices no longer worked, or rather, was exposed as not working. The fix here is to suppress the warning in pytest.ini and pytesttester.py , which should work as long as the tests are the only places left where NumPy uses matrices. An alternate fix is to delay the construction of matrices in the tests until they are actually run, which has the virtue of test localization but is a bit more complicated. See https://github.com/pytest-dev/pytest/issues/3945 for discussion.
* MAINT: Move pytesttester outside of np.testing, to avoid creating ↵Eric Wieser2018-07-021-0/+197
unnecessary import dependencies pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports Relates to #11457