]> git.pld-linux.org Git - packages/python3-numpy.git/blame - python3-numpy-deprecated.patch
- updated to 1.22.4
[packages/python3-numpy.git] / python3-numpy-deprecated.patch
CommitLineData
fda4872c
JB
1--- numpy-1.22.4/numpy/random/tests/test_extending.py.orig 2022-05-20 15:46:11.022547000 +0200
2+++ numpy-1.22.4/numpy/random/tests/test_extending.py 2022-09-02 21:05:39.227962995 +0200
3@@ -30,16 +30,6 @@ try:
4 from Cython.Compiler.Version import version as cython_version
5 except ImportError:
6 cython = None
7-else:
8- from distutils.version import LooseVersion
9- # Cython 0.29.21 is required for Python 3.9 and there are
10- # other fixes in the 0.29 series that are needed even for earlier
11- # Python versions.
12- # Note: keep in sync with the one in pyproject.toml
13- required_version = LooseVersion('0.29.21')
14- if LooseVersion(cython_version) < required_version:
15- # too old or wrong cython, skip the test
16- cython = None
17
18 @pytest.mark.skipif(cython is None, reason="requires cython")
19 @pytest.mark.slow
20--- numpy-1.22.4/numpy/core/tests/test_cython.py.orig 2022-05-20 15:46:10.990547200 +0200
21+++ numpy-1.22.4/numpy/core/tests/test_cython.py 2022-09-02 21:02:27.667878264 +0200
22@@ -12,17 +12,6 @@ try:
23 from Cython.Compiler.Version import version as cython_version
24 except ImportError:
25 cython = None
26-else:
27- from distutils.version import LooseVersion
28-
29- # Cython 0.29.21 is required for Python 3.9 and there are
30- # other fixes in the 0.29 series that are needed even for earlier
31- # Python versions.
32- # Note: keep in sync with the one in pyproject.toml
33- required_version = LooseVersion("0.29.21")
34- if LooseVersion(cython_version) < required_version:
35- # too old or wrong cython, skip the test
36- cython = None
37
38 pytestmark = pytest.mark.skipif(cython is None, reason="requires cython")
39
This page took 0.074223 seconds and 4 git commands to generate.