diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2023-01-18 17:04:13 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2023-01-19 14:35:44 -0700 |
commit | f75bb0edb0e6eec2564de4bf798242984860a19b (patch) | |
tree | 147d9a0804a8d0afb8d409d8f0595b688be3f5f6 /numpy/tests/test_public_api.py | |
parent | b2badd70786145eb21cec02109b23e6520c6ffea (diff) | |
download | numpy-f75bb0edb0e6eec2564de4bf798242984860a19b.tar.gz |
MAINT: Remove all nose testing support.
NumPy switched to using pytest in 2018 and nose has been unmaintained
for many years. We have kept NumPy's nose support to avoid breaking
downstream projects who might have been using it and not yet switched to
pytest or some other testing framework. With the arrival of Python 3.12,
unpatched nose will raise an error. It it time to move on.
Decorators removed
- raises
- slow
- setastest
- skipif
- knownfailif
- deprecated
- parametrize
- _needs_refcount
These are not to be confused with pytest versions with similar names,
e.g., pytest.mark.slow, pytest.mark.skipif, pytest.mark.parametrize.
Functions removed
- Tester
- import_nose
- run_module_suite
Diffstat (limited to 'numpy/tests/test_public_api.py')
-rw-r--r-- | numpy/tests/test_public_api.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py index 98e59b452..cc6d0a033 100644 --- a/numpy/tests/test_public_api.py +++ b/numpy/tests/test_public_api.py @@ -34,7 +34,6 @@ def test_numpy_namespace(): # None of these objects are publicly documented to be part of the main # NumPy namespace (some are useful though, others need to be cleaned up) undocumented = { - 'Tester': 'numpy.testing._private.nosetester.NoseTester', '_add_newdoc_ufunc': 'numpy.core._multiarray_umath._add_newdoc_ufunc', 'add_docstring': 'numpy.core._multiarray_umath.add_docstring', 'add_newdoc': 'numpy.core.function_base.add_newdoc', @@ -64,7 +63,7 @@ def test_numpy_namespace(): @pytest.mark.skipif(IS_WASM, reason="can't start subprocess") -@pytest.mark.parametrize('name', ['testing', 'Tester']) +@pytest.mark.parametrize('name', ['testing']) def test_import_lazy_import(name): """Make sure we can actually use the modules we lazy load. |