Skip to content

Commit

Permalink
Remove obsolete numpy shorthand types which were removed in numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brunns committed Jun 18, 2024
1 parent 9814948 commit b455471
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/hamcrest_unit_test/number/iscloseto_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ def test_numpy_numeric_type_uint32(self):
def test_numpy_numeric_type_uint64(self):
self.assertTrue(isnumeric(np.uint64(1)), "Unsigned integer (0 to 18446744073709551615)")

@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
def test_numpy_numeric_type_float(self):
self.assertTrue(isnumeric(np.float_(1)), "Shorthand for float64.")

@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
def test_numpy_numeric_type_float16(self):
self.assertTrue(
Expand All @@ -125,10 +121,6 @@ def test_numpy_numeric_type_float64(self):
"Double precision float: sign bit, 11 bits exponent, 52 bits mantissa",
)

@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
def test_numpy_numeric_type_complex(self):
self.assertTrue(isnumeric(np.complex_(1)), "Shorthand for complex128.")

@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
def test_numpy_numeric_type_complex64(self):
self.assertTrue(
Expand Down

1 comment on commit b455471

@martenwa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this addresses issue #228 .

Please sign in to comment.