summaryrefslogtreecommitdiff
path: root/numpy/tests
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Move module to be `np.dtypes` and add release noteSebastian Berg2023-04-121-1/+1
|
* API: Add `numpy.types` module and fill it with DType classesSebastian Berg2023-04-121-0/+1
|
* MAINT: Remove numpy.dual from API checkCharles Harris2023-03-281-1/+0
|
* Merge pull request #22982 from yamadafuyuka/add_fujitsuccompiler_and_SSL2Sebastian Berg2023-03-061-0/+1
|\ | | | | ENH: add support for fujitsu C/C++ compiler and SSL2 to numpy.
| * ENH: add support for fujitsu C/C++ compiler and SSL2 to numpy.yamadafuyuka2023-03-021-0/+1
| |
* | TST: xfail api entry point test when building with mesonmattip2023-02-221-0/+4
|/
* BLD: Meson `__config__` generation (#22769)Ganesh Kathiresan2023-01-241-0/+44
| | | | | | | | | | | | | | | | | | | | | | | Add functionality to autogenerate build information for a Meson-based build. In order to add new information, do the following: - Add the information as an argument in `numpy/meson.build` - Modify `__config__.py.in` to accept the new argument Note that SIMD information is added to config, but is WIP/empty, because `__cpu*` lists are not yet populated as meson does not build SIMD features yet. There are two display modes: - `stdout`: Uses `PyYaml` to display in a human friendly format. Uses `json` if `PyYaml` is not installed - `dicts`: Returns a `dict` object Things will work fine without `pyyaml` installed, an unobtrusive warning is displayed that the printed output will look better with `pyyaml`. [ci skip]
* DEP: Remove the deprecated utils.py shim.Charles Harris2023-01-211-1/+0
| | | | | The shim has been deprecated since 2019, the proper place to import utils funtions is directly from numpy.testing.
* MAINT: Remove all nose testing support.Charles Harris2023-01-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | NumPy switched to using pytest in 2018 and nose has been unmaintained for many years. We have kept NumPy's nose support to avoid breaking downstream projects who might have been using it and not yet switched to pytest or some other testing framework. With the arrival of Python 3.12, unpatched nose will raise an error. It it time to move on. Decorators removed - raises - slow - setastest - skipif - knownfailif - deprecated - parametrize - _needs_refcount These are not to be confused with pytest versions with similar names, e.g., pytest.mark.slow, pytest.mark.skipif, pytest.mark.parametrize. Functions removed - Tester - import_nose - run_module_suite
* TST: ignore more np.distutils.log importsBen Greiner2022-12-191-0/+2
| | | | | | Ignore two more modules from np.distutils.log found by test_public_api.py::test_all_modules_are_expected_2 Closes #22827
* API: Hide exceptions from the main namespaceSebastian Berg2022-12-061-0/+14
| | | | | | | | | | | | I wasn't sure if we should already start deprecating the exceptions so opted to follow up with only hiding them from `__dir__()` but still having them in `__all__` and available. This also changes their module to `numpy.exceptions`, which matters because that is how they will be pickled (it would not be possible to unpickle such an exception in an older NumPy version). Due to pickling, we could put off changing the module.
* Merge pull request #22731 from HaoZeke/maBenchCleanupMatti Picus2022-12-051-1/+0
|\ | | | | BENCH: Update MaskedArray Benchmarks
| * MAINT: Kill old hand-written benchmarksRohit Goswami2022-12-051-1/+0
| |
* | ENH: Add an InvalidPromotion exceptionSebastian Berg2022-12-011-0/+1
|/
* API: Add new exceptions module and move exception exposed via numericSebastian Berg2022-11-301-0/+1
| | | | This means moving ComplexWarning, TooHardError, and AxisError.
* Merge pull request #22533 from ngoldbaum/ufunc-and-function-listingSebastian Berg2022-11-291-0/+1
|\ | | | | API: Add numpy.testing.overrides to aid testing of custom array containers
| * API: Add numpy.testing.overrides to aid testing of custom array containersNathan Goldbaum2022-11-161-0/+1
| | | | | | | | Closes #15544
* | BLD: enable building NumPy with MesonRalf Gommers2022-11-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables building with NumPy on Linux and macOS. Windows support should be complete to, but is untested as of now and may need a few tweaks. This contains: - A set of `meson.build` files and related code generation script tweaks, header templates, etc. - One CI job on Linux - Basic docs on using Meson to build NumPy (not yet integrated in the html docs, it's too early for that - this is for early adopters right now). The build should be complete, with the major exception of SIMD support. The full test suite passes. See gh-22546 for the tracking issue with detailed notes on the plan for switching NumPy to Meson as its build system. Co-authored-by: Stefan van der Walt <stefanv@berkeley.edu>
* | TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-113-2/+13
|/
* DEP: fastCopyAndTranspose and PyArray_CopyAndTransposeRoss Barnowski2022-10-061-1/+1
| | | | | | | | Deprecate the fastCopyAndTranspose function from the Python API, and the underlying PyArray_CopyAndTranspose function from the C-API. Also removes an internal, private function _fastCopyAndTranspose which was the original Python wrapper around the C-function.
* TST: Added show_runtime to test_public_apiganesh-k132022-08-191-0/+1
|
* ENH: allow importlib.LazyLoader to work with numpy and add test of this (#22045)Dan Schult2022-07-271-0/+38
|
* MAINT: Python <3.8 related cleanupsBrigitta Sipőcz2022-05-231-2/+2
|
* MAINT: Kill unused fileRohit Goswami2022-05-051-1/+0
| | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Merge pull request #20416 from ARCCA/armcompilerMatti Picus2021-12-241-0/+2
|\ | | | | ENH: Add ARM Compiler with ARM Performance Library support
| * Update test_public_api.pyThomas Green2021-12-021-0/+2
| |
* | ENH: Generate the docstrings of umath into a separated C headerSayed Adel2021-12-121-0/+1
|/ | | | | | | | To allow access to the docstring of ufunc via identifier #DOC_PLACE_OF_UFUNC, e.g. DOC_NUMPY_CORE_UMATH_ABSOLUTE. This patch is part of a series of steps aimed at replacing template sources and the umath python generator with C++ meta-programming.
* ENH: Add the linalg extension to the array_api submodule (#19980)Aaron Meurer2021-11-141-0/+1
|
* Merge pull request #20284 from WarrenWeckesser/fix-name-dupsRalf Gommers2021-11-041-0/+9
|\ | | | | BUG: Fix duplication of names in 'numpy.__all__'.
| * BUG: Fix duplication of names in 'numpy.__all__'.warren2021-11-031-0/+9
| | | | | | | | Closes gh-10198.
* | xfail `test_array_api_entry_point` on python-dbgMatthew2021-11-041-0/+9
| |
* | Use ep.load() instead of import_module() to get xpMatthew Barber2021-11-041-1/+1
| | | | | | | | Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
* | Clearer test logicMatthew Barber2021-11-041-6/+13
| |
* | Make test compatible with Python >=3.10Matthew Barber2021-11-041-5/+11
| |
* | Test array_api entry point exists and points to numpy.array_apiMatthew Barber2021-11-041-0/+16
|/
* DEP: Deprecate the `np.core.machar` moduleBas van Beek2021-10-261-1/+0
|
* Merge pull request #17530 from BvB93/fspathCharles Harris2021-10-091-7/+10
|\ | | | | ENH: Allow `ctypeslib.load_library` to take any path-like object
| * TST: Updated the `ctypeslib.load_library` testsBas van Beek2020-10-101-7/+10
| |
* | Add new module numpy.f2py.symbolicPearu Peterson2021-09-011-0/+1
| |
* | Merge pull request #18585 from data-apis/array-apiCharles Harris2021-08-231-0/+1
|\ \ | | | | | | ENH: Implementation of the NEP 47 (adopting the array API standard)
| * | Make sure array_api is included in the public API testsAaron Meurer2021-08-121-0/+1
| | |
* | | MAINT: Cleanup code after dropping Python 3.7.Charles Harris2021-08-161-16/+2
| | |
* | | Rm numpy.lib.npyio.mafromtxt.Ross Barnowski2021-08-051-1/+0
| | |
* | | Rm numpy.lib.npyio.ndfromtxt.Ross Barnowski2021-08-051-1/+0
|/ /
* | TST: Validate the return code of `test_full_reimport`Bas van Beek2021-07-211-2/+5
| | | | | | | | All errors raised within the sub process will remain silenced if the return code isn't validated
* | TST fix comment of assert+indentationJérôme Kieffer2021-05-311-2/+2
| |
* | TST Fix typoJérôme Kieffer2021-05-311-2/+2
| |
* | TST: fix pylintJérôme Kieffer2021-05-311-2/+4
| |
* | BUG: re-introduce short-version as it wasJérôme Kieffer2021-05-311-0/+8
| |
* | BUG: Fix test_numpy_version.Charles Harris2021-05-231-4/+21
| | | | | | | | | | | | - Make versions of the form '1.22.0.dev0' valid for non-releases. - Put empty match at end of groups instead of at the beginning. - Require eol in match, do not allow trailing characters.