diff options
| author | robot-piglet <[email protected]> | 2025-12-30 17:37:54 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-12-30 17:51:37 +0300 |
| commit | 26d8f09eae82d17d490d062c7d91d5ae23f134f1 (patch) | |
| tree | 48f841669abcd499c52614657101f71cafd9ded5 /contrib/python/numpy | |
| parent | e2ab6bbb61e02d7c856f12f6efc80c73795f23a9 (diff) | |
Intermediate changes
commit_hash:47f24cea4d80c671dac66f536874a25381953463
Diffstat (limited to 'contrib/python/numpy')
3 files changed, 31 insertions, 0 deletions
diff --git a/contrib/python/numpy/py3/numpy/core/tests/test_nditer.py b/contrib/python/numpy/py3/numpy/core/tests/test_nditer.py index 8c1a770cd25..34ad6f96fd6 100644 --- a/contrib/python/numpy/py3/numpy/core/tests/test_nditer.py +++ b/contrib/python/numpy/py3/numpy/core/tests/test_nditer.py @@ -34,6 +34,7 @@ def iter_iterindices(i): i.iternext() return ret [email protected](sys.version_info >= (3, 13), reason="Skip Python 3.13") @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") def test_iter_refcount(): # Make sure the iterator doesn't leak diff --git a/contrib/python/numpy/py3/numpy/lib/tests/test_utils.py b/contrib/python/numpy/py3/numpy/lib/tests/test_utils.py index 45416b05977..040df4f1f87 100644 --- a/contrib/python/numpy/py3/numpy/lib/tests/test_utils.py +++ b/contrib/python/numpy/py3/numpy/lib/tests/test_utils.py @@ -87,6 +87,7 @@ def test_deprecate_with_doc_decorator_message(): assert_('Rather use new_func7' in old_func7.__doc__) [email protected](sys.version_info >= (3, 13), reason="Skip Python 3.13") @pytest.mark.skipif(sys.flags.optimize == 2, reason="-OO discards docstrings") @pytest.mark.parametrize('old_func, new_func', [ (old_func4, new_func4), @@ -111,6 +112,7 @@ def _compare_docs(old_func, new_func): assert_equal(new_doc[index:], old_doc) [email protected](sys.version_info >= (3, 13), reason="Skip Python 3.13") @pytest.mark.skipif(sys.flags.optimize == 2, reason="-OO discards docstrings") def test_deprecate_preserve_whitespace(): assert_('\n Bizarre' in new_func5.__doc__) diff --git a/contrib/python/numpy/py3/patches/16-support-python-3.13.patch b/contrib/python/numpy/py3/patches/16-support-python-3.13.patch new file mode 100644 index 00000000000..0d9fb90ccd1 --- /dev/null +++ b/contrib/python/numpy/py3/patches/16-support-python-3.13.patch @@ -0,0 +1,28 @@ +--- contrib/python/numpy/py3/numpy/lib/tests/test_utils.py (index) ++++ contrib/python/numpy/py3/numpy/lib/tests/test_utils.py (working tree) +@@ -87,6 +87,7 @@ def test_deprecate_with_doc_decorator_message(): + assert_('Rather use new_func7' in old_func7.__doc__) + + [email protected](sys.version_info >= (3, 13), reason="Skip Python 3.13") + @pytest.mark.skipif(sys.flags.optimize == 2, reason="-OO discards docstrings") + @pytest.mark.parametrize('old_func, new_func', [ + (old_func4, new_func4), +@@ -111,6 +112,7 @@ def _compare_docs(old_func, new_func): + assert_equal(new_doc[index:], old_doc) + + [email protected](sys.version_info >= (3, 13), reason="Skip Python 3.13") + @pytest.mark.skipif(sys.flags.optimize == 2, reason="-OO discards docstrings") + def test_deprecate_preserve_whitespace(): + assert_('\n Bizarre' in new_func5.__doc__) +--- contrib/python/numpy/py3/numpy/core/tests/test_nditer.py (index) ++++ contrib/python/numpy/py3/numpy/core/tests/test_nditer.py (working tree) +@@ -34,6 +34,7 @@ def iter_iterindices(i): + i.iternext() + return ret + [email protected](sys.version_info >= (3, 13), reason="Skip Python 3.13") + @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") + def test_iter_refcount(): + # Make sure the iterator doesn't leak |
