Skip to content

Commit 498ea96

Browse files
authored
Merge pull request hamcrest#248 from brunns/remove-obsolete-numpy-shorthands
Remove obsolete numpy shorthand types which were removed in numpy 2.0
2 parents 9814948 + b455471 commit 498ea96

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/hamcrest_unit_test/number/iscloseto_test.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ def test_numpy_numeric_type_uint32(self):
100100
def test_numpy_numeric_type_uint64(self):
101101
self.assertTrue(isnumeric(np.uint64(1)), "Unsigned integer (0 to 18446744073709551615)")
102102

103-
@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
104-
def test_numpy_numeric_type_float(self):
105-
self.assertTrue(isnumeric(np.float_(1)), "Shorthand for float64.")
106-
107103
@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
108104
def test_numpy_numeric_type_float16(self):
109105
self.assertTrue(
@@ -125,10 +121,6 @@ def test_numpy_numeric_type_float64(self):
125121
"Double precision float: sign bit, 11 bits exponent, 52 bits mantissa",
126122
)
127123

128-
@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
129-
def test_numpy_numeric_type_complex(self):
130-
self.assertTrue(isnumeric(np.complex_(1)), "Shorthand for complex128.")
131-
132124
@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
133125
def test_numpy_numeric_type_complex64(self):
134126
self.assertTrue(

0 commit comments

Comments
 (0)