Blame SOURCES/numpy-1.20.0-alias-depr.patch

50d805
--- a/tests/hamcrest_unit_test/number/iscloseto_test.py	2022-09-05 16:04:56.568203720 +0300
50d805
+++ b/tests/hamcrest_unit_test/number/iscloseto_test.py	2022-09-05 16:14:06.813885281 +0300
50d805
@@ -64,7 +64,7 @@
50d805
 class IsNumericTest(unittest.TestCase):
50d805
     @unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
50d805
     def test_numpy_numeric_type_int(self):
50d805
-        self.assertTrue(isnumeric(np.int(1)), "Platform integer (normally either int32 or int64)")
50d805
+        self.assertTrue(isnumeric(np.int_(1)), "Platform integer (normally either int32 or int64)")
50d805
 
50d805
     @unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
50d805
     def test_numpy_numeric_type_int8(self):
50d805
@@ -102,7 +102,7 @@
50d805
 
50d805
     @unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
50d805
     def test_numpy_numeric_type_float(self):
50d805
-        self.assertTrue(isnumeric(np.float(1)), "Shorthand for float64.")
50d805
+        self.assertTrue(isnumeric(np.float_(1)), "Shorthand for float64.")
50d805
 
50d805
     @unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
50d805
     def test_numpy_numeric_type_float16(self):
50d805
@@ -127,7 +127,7 @@
50d805
 
50d805
     @unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
50d805
     def test_numpy_numeric_type_complex(self):
50d805
-        self.assertTrue(isnumeric(np.complex(1)), "Shorthand for complex128.")
50d805
+        self.assertTrue(isnumeric(np.complex_(1)), "Shorthand for complex128.")
50d805
 
50d805
     @unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
50d805
     def test_numpy_numeric_type_complex64(self):