| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
BUG: test and fix import linspace in index_tricks
|
| |
|
| |
|
|\
| |
| | |
TST: test invalid histogram range
|
| | |
|
|/ |
|
|\
| |
| | |
DOC, TST: cover setdiff1d assume_unique
|
| |
| |
| |
| |
| |
| |
| |
| | |
* add unit test for setdiff1d covering code
path where assume_unique is True
* remove setdiff1d docstring guarantee that
returned value is sorted -- it is not
|
|/
|
|
|
|
|
|
|
|
|
| |
* unravel_index() now supports the shape argument
(Fixes #10586) while retaining backwards compatibility
for the dims argument
* added corresponding unit tests and docstring
changes
* updated compatibility release notes
|
|
|
|
|
|
|
| |
* add unit tests to probe previously-uncovered
code paths in byte_bounds() that handle both
positive and negative strides in non-contiguous
arrays (or, at least, arrays with unusual ordering)
|
|
|
|
|
|
| |
* add a unit test for an uncovered code path
where a histogram array does not match the
shape of the provided array of weights
|
|\
| |
| | |
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.
|
| | | |
|