| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
For the time being, these tests will ignore the flood of deprecated
yield test warnings. Fixing those is for another PR.
|
|
|
|
|
|
| |
Takes over some bits from SciPy. The most visible user change is the
replacement of `--timer` by `--durations`, with `--durations=0` meaning
time all tests.
|
|
|
|
|
|
|
|
| |
Numpy can now be tested using the standard
`python -c"import numpy; numpy.test()"`
construct.
|
|
|
|
|
|
|
|
|
|
|
| |
Use standard pytest markers everywhere in the numpy tests. At this point
there should be no nose dependency. However, nose is required to test
the legacy decorators if so desired.
At this point, numpy test cannot be run in the way with runtests, rather
installed numpy can be tested with `pytest --pyargs numpy` as long as
that is not run from the repo. Run it from the tools directory or some
such.
|
| |
|
|
|
|
|
|
|
|
| |
* Make PytestTester callable.
* Rename 'timer' to 'durations', corresponding with pytest.
* Offset 'verbose', no entry is now '-q'.
* Move some `ignore` warnings into PytestTester so that they
affect releases, not just develop.
|
|\
| |
| | |
ENH: Add tester for pytest.
|
| |
| |
| |
| |
| |
| | |
[ci skip]
This is not used yet, but has been tested with temporary changes
and works.
|
| |
| |
| |
| | |
Include relevant suppression of various warnings.
|
| |
| |
| |
| |
| | |
The "bench" testing with the old bench files is no longer supported.
These days we use `runtests.py` and `asv`.
|
|\ \
| | |
| | | |
DOC: note that NDEBUG should be set when OPT should increase optimization
|
| |/ |
|
|\ \
| | |
| | | |
ENH: Add support for the 64-bit RISC-V architecture
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
RISC-V (pronounced "RISC Five") is an open source instruction set
architecture (ISA). The 64-bit version may run the Linux kernel and the
usual stack of applications on top of it, including Python.
This patch adds support for riscv64 to Numpy. With it the full testsuite
passes for both Python 2.7 and 3.6, with the only exception of
test_float (test_numeric.TestBoolCmp). See #8213 for details.
Closes: #8213
|
|\ \
| |/
|/| |
NEP index builder
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
A superseded NEP should have a Replaced-By header. The replacing NEP
should have a Replaces header. They should point to one another.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
ENH: datetime64: support AC dates starting with '+'
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Numpy allows negatives signs but throws a value error when parsing
datetime strings starting with '+':
>>> np.datetime64('+1000-01-01T00:00:00Z')
ValueError: Error parsing datetime string "+1000-01-01T00:00:00Z" at position 0
Since the default is positive years, we just need to skip the '+'
character.
Fixes #10810.
|
|\ \ \
| |/ /
|/| | |
ENH: Add "stablesort" option to inp.sort as an alias for "mergesort".
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes #10784
|
|\ \ \
| | | |
| | | | |
BUG: Fix obvious warning bugs.
|
| | | |
| | | |
| | | |
| | | | |
The warning type is the second, not the first, argument.
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Fix minor typos
|
|/ / / /
| | | |
| | | | |
Found via `codespell -q 3 -I ../numpy-whitelist.txt`
|
|\ \ \ \
| |/ / /
|/| | | |
BLD: use Python 3.6 instead of 2.7 as default for doc build.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
BUG: fix obvious mistake in testing/decorators warning.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
MAINT: Rearrange `numpy/testing` files
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Downstream projects were importing directly from the testing modules
rather than from testing. Discourage this.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is to prepare for the switch to pytest.
* Rename `numpy/testing/nose_tools` to `numpy/testing/_private`.
* Redirect imports as needed.
* Copy `_testutils.py` from scipy to `numpy/testing/_private`.
* Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: np.ma.flatnotmasked_contiguous behaves differently on mask=nomask and mask=zeros
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Depending on the input, this would return:
* A single slice, if mask=nomask
* A list of slices, if mask is an array
* None, if mask is fully masked
The documented return value is a list, and all downstream callers of this
function end up having to correct for it not being one.
This affects the result of np.ma.notmasked_contiguous, which also did not
document these unusual return values.
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Update link to tox in development docs (#10806)
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Allow spaces in output string of einsum
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Also produce more useful error messages
Fixes gh-10794
|
|\ \ \ \
| | | | |
| | | | | |
BUG: error checking before mapping of einsum axes.
|