summaryrefslogtreecommitdiffstats
path: root/contrib/python/numpy/py3/patches/16-support-python-3.13.patch
blob: 0d9fb90ccd1ec1e47f1bb05730d7bb1873e9a090 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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