| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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.
|
| |
| |
| |
| |
| | |
The "bench" testing with the old bench files is no longer supported.
These days we use `runtests.py` and `asv`.
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
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.
|
|/ /
| |
| | |
Found via `codespell -q 3 -I ../numpy-whitelist.txt`
|
| | |
|
|\ \
| | |
| | | |
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.
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
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.
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
BUG: Fix SQRT_MIN for platforms with 8-byte long double
|
| | | |
|
| | |
| | |
| | |
| | | |
Unifies scalar and ndarray pep3118 format string generation
|
|\ \ \
| | | |
| | | | |
TST: Various fixes prior to switching to pytest
|
| | | |
| | | |
| | | |
| | | |
| | | | |
These tests were not included in the `setup.py` file and consequently
not available in the installed numpy for testing.
|
| | | |
| | | |
| | | |
| | | | |
Avoids pytest collection time warnings.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The renamed C modules provide low level functions for testing. The
rename marks them as private functions and makes them invisible to
pytest by default.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add class CommaDecimalPointLocale that can be used for testing in a
LC_NUMERIC locale where the decimal point is a comma. It functions
either as a context manager or as a base class with setup and teardown
methods. Both uses raise SkipTest when no suitable locale is available.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `assert_raises` and `assert_raises_regex` testing utilities were
being imported from nose, which in turn took them from unittest
`assertRaises` and `assertRaisesRegex`. We takeover the nose procedure
here so that these commonly used utilities no longer have a nose
dependence.
The `raises` decorator continues to have a nose dependency, but that
only shows up when used, and NumPy does not use it. Document that and
otherwise leave it be.
|
| |_|/
|/| |
| | | |
('van' vs 'Van')
|
|/ / |
|
|\ \
| | |
| | | |
MAINT: Remove use of unittest in NumPy tests.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This removes a few left over uses of unittest. The main changes apart
from removal of Test case are:
* `setUp` replaced by nose and pytest compatible `setup`
* `tearDown` replaced by nose and pytest compatible `teardown`
* `assertRaises` replaced by `assert_raises`
* `assertEqual` replaced by `assert_equal`
The last two are in `numpy/testings/tests/test_utils.py`, so may seem a
but circular, but at least are limited to those two functions.
The use of `setup` and `teardown`, can be fixed up with the pytest
equivalents after we have switched to pytest.
|
| |/
|/| |
|
|\ \
| |/
|/| |
MAINT: Remove the unused scalarmath getters for fmod and sqrt
|
| | |
|
|\ \
| |/
|/| |
MAINT, TST: Fixes for Python 3.7
|
| |
| |
| |
| |
| |
| |
| | |
The PyObject_AsWriteBuffer and PyObject_AsReadBuffer functions are
deprecated in Python 3. Replace them with the Py_buffer based
replacements. Much of that was done prior to this patch, but some uses
were missed.
|
| |
| |
| |
| |
| |
| | |
The contents of the module warnings registries was made more module
specific in Python 3.7 and consequently the tests of the context
managers clear_and_catch_warnings and suppress_warnings need updating.
|
| |
| |
| |
| |
| |
| | |
In Python 3.7 the return type of PyUnicode_AsUTF8 has changed from
`char *` to `const char *` and the variable the return is stored in
needs to match.
|
|\ \
| | |
| | | |
DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges`
|
| | | |
|