summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_ufunclike.py
Commit message (Collapse)AuthorAgeFilesLines
* DEP: expire deprecation for "y as out" in fix/isposinf/isneginfRalf Gommers2023-03-121-6/+0
|
* 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.
* MAINT: Remove uses of scalar aliasesEric Wieser2019-11-131-2/+2
| | | | Relates to gh-6103
* Merge pull request #11503 from jor-/masterMatti Picus2018-08-011-2/+10
|\ | | | | MAINT: improve error message for isposinf and isneginf on complex values
| * API: isposinf and isneginf now raise TypeError instead of ValueError for ↵Joscha Reimer2018-07-301-2/+2
| | | | | | | | complex values
| * TEST: numpy.lib.ufunclike: isposinf and isneginf are tested with complex ↵Joscha Reimer2018-07-271-2/+10
| | | | | | | | values whether exception is raised
| * Revert "TEST: isposinf and isneginf is now also tested with complex values"Joscha Reimer2018-07-261-19/+17
| | | | | | | | This reverts commit cd8ffcf11f7d31e383d81112c4bb342ac0269fc8.
| * TEST: isposinf and isneginf is now also tested with complex valuesJoscha Reimer2018-07-051-17/+19
| |
* | BUG/MAINT: Handle errors in __array_wrap__ the same way in ufunc.reduce as ↵Eric Wieser2018-06-121-1/+2
|/ | | | | | in ufunc.__call__ Previously they were silenced
* MAINT: clean up assert_array_compare a bit further.Marten van Kerkwijk2018-06-041-0/+4
| | | | | | | | | | | | | | This brought to light two bugs in tests, which are fixed here, viz., that a sample ndarray subclass that tested propagation of an added parameter was incomplete, in that in propagating the parameter in __array_wrap__ it assumed it was there on self, but that assumption could be broken when a view of self was taken (as is done by x[~flagged] in the test routine), since there was no __array_finalize__ defined. The other subclass bug counted, incorrectly, on only needing to provide one type of comparison, the __lt__ being explicitly tested. But flags are compared with __eq__ and those flags will have the same subclass.
* MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-061-4/+1
| | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* TST: Remove unittest dependencies in numpy/lib/tests.Charles Harris2017-07-241-3/+2
|
* BUG: Return scalars from ufunclike objectsEric Wieser2017-04-261-0/+25
| | | | | | No need to reinvent the wheel here - the ufunc machinery will handle the out arguments Fixes #8993
* DEP: Deprecate calling the `out` argument `y`Eric Wieser2017-04-261-1/+8
| | | | Fixes gh-8995
* MAINT: Fix problems noted by pyflakes in numpy/lib/tests.Charles Harris2014-07-311-2/+3
|
* STY: Make numpy/lib/test/*.py PEP8 compliant.Charles Harris2013-09-031-1/+3
| | | | | | | Run autopep8 over the test files in numpy/lib/test and make fixes to the result. Also remove Python5 workaround.
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-1/+1
| | | | | | | Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* DEP: remove deprecated np.lib.ufunclike.log2 function.rgommers2011-03-111-12/+1
|
* correct a bug in fix() that was introduced in r8293Darren Dale2010-04-181-0/+1
|
* BUG: Use deprecated decorator in testing ufunclike.log2.Charles Harris2010-04-141-10/+7
|
* BUG: Python 2.4 doesn't support "with" statement, use try instead.Charles Harris2010-04-131-1/+3
|
* ENH: Rewrite doctest in test_ufunclike.py as normal nose tests. Remove test ofCharles Harris2010-04-131-74/+60
| | | | sign ufunc, it belongs elsewhere.
* minor change to ufunclike.fix, one less array to build and make compatibleDarren Dale2010-03-141-0/+18
| | | | with subclasses of ndarray
* fix remaining tests to reflect new behavior of sign(nan)Charles Harris2009-03-101-2/+2
|
* Fix a test failure due to changes in the sign ufunc.Charles Harris2009-03-101-1/+1
|
* Fix fix tests.David Cournapeau2008-08-251-3/+3
|
* ran reindentJarrod Millman2008-08-081-1/+0
|
* Restore old test framework classes.Alan McIntyre2008-06-211-4/+4
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-171-3/+5
| | | | modules.
* Rename test classes to CapWords.Stefan van der Walt2007-10-021-1/+1
|
* Fix tests for Boolean.Travis Oliphant2006-12-241-8/+8
|
* Fix tests to run cleanly with new, tighter error handling.Tim Hochberg2006-10-191-0/+4
|
* Fix back repr of arrays to not have quote unless flexible.Travis Oliphant2006-09-251-8/+8
|
* Fix doctests for new dtypeTravis Oliphant2006-09-241-8/+8
|
* Added NumpyTestCase.rundocs method to support running doc-tests via unittest ↵Pearu Peterson2006-04-261-4/+3
| | | | machinery - needed for running tests via testoob.
* More fixes...Travis Oliphant2006-01-041-5/+5
|
* Changed all references to scipy to numpyTravis Oliphant2006-01-041-3/+3
|
* Change most setup.py filesTravis Oliphant2006-01-041-0/+63