| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \
| | | | |
| | | | | |
TST: error tests for fill_diagonal()
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* add error handling tests for previously
uncovered code in fill_diagonal()
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
* add unit tests for previously uncovered
error handling code in diag_indices_from()
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Convert bool to uint at start, rather than attempt a XOR
Only check type against np.bool_
Refactor warnings check
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
ENH: maximum lines of content to be read from numpy.loadtxt
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* replace most usage of SkipTest() with
pytest.skip()
* where possible, we avoid use of the standard
library SkipTest because unittest skipping
is routed through the pytest nose compatibility
layer in that scenario, which can prevent an easy
trace back to the test line where the skip
occurred
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: Add more tests for np.pad
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
rounds to `float`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The test is marked xfail right now as it is not fixed in master
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: Add a test for np.pad where constant_values is an object
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |/ / / / |
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
After the pytest migration, test classes no longer inherit
from unittest.TestCase and and the fail method does not
exist anymore.
In all these cases, we can use assert_raises and assert_raises_regex instead
|
| | | |
| | | |
| | | |
| | | |
| | | | |
It's a straightforward copy&paste error, but it means not all these
tests get run.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(#11813)
Fixes #11809.
* BUG: fix array_split incorrect behavior with array size bigger MAX_INT32
* TST: added test for array_split with array size greater MAX_INT32
* addressed review comments
|
|\ \ \ \
| | | | |
| | | | | |
TST: add broadcast_arrays() kwarg unit test for TypeError
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* broadcast_arrays() is now tested for the case when an invalid
keyword argument is used; the appropriate error string content
is also tested for
* the TypeError message produced in the above case has been restored
to the correct value in Python 3
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Avoid signed overflow in histogram
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When dividing the range between first and last, the formula `(x - first) / (last - first)` is used, where `last >= first`
This falls apart if the types of these variables are signed integers, in which case overflow can occur.
The solution is to force the subtraction result to be unsigned.
This is a regression in 1.15.0
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Fix regression in intersect1d.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The function was failing for non-ndarray objects that defined
that defined __array__, in particular `xarray.DataArray`. Fix
by calling asanyarray on the inputs, which was done implicitly
before.
Closes #11772.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
TST: Fix urlopen stubbing.
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | | |
setup/teardown doesn't work, but setup_module/teardown_module does, at
least in pytest.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Text bz2 files are not well supported in Python2, and, following the
NumPy upgrade in text handling, loadtxt was raising an error when they
were detected. This led to problems for those few who were using such
files. This patch is a quick fix that issues a RuntimeWarning, then
opens those files under the assumption that they are latin1 encoded.
Caveat emptor.
Closes #11633.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: improve error message for isposinf and isneginf on complex values
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
complex values
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
values whether exception is raised
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reverts commit cd8ffcf11f7d31e383d81112c4bb342ac0269fc8.
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
ENH: Make expand_dims work on subclasses
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|_|_|_|/
|/| | | | | | |
ENH: np.angle: Remove unnecessary multiplication, and allow subclasses to pass through
|
| |/ / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: fix np.load() of empty .npz file
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | | |
Fixes #9989
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
BUG: don't silence __array_wrap__ errors in ufunc.reduce
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
in ufunc.__call__
Previously they were silenced
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
regular tests. (#GH9416).
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: link to TESTS.rst.txt testing guidelines document, tweaks
|
| | | | | | | |
|