Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated numpy alias #218

Merged
merged 1 commit into from
Sep 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/hamcrest_unit_test/number/iscloseto_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def testMatcherSupportsDecimal(self):
class IsNumericTest(unittest.TestCase):
@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
def test_numpy_numeric_type_int(self):
self.assertTrue(isnumeric(np.int(1)), "Platform integer (normally either int32 or int64)")
self.assertTrue(isnumeric(np.int_(1)), "Platform integer (normally either int32 or int64)")

@unittest.skipUnless(NUMPY_AVAILABLE, "Skipped because it needs NumPy")
def test_numpy_numeric_type_int8(self):
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_numpy_numeric_type_uint64(self):

@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.")
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):
Expand All @@ -127,7 +127,7 @@ def test_numpy_numeric_type_float64(self):

@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.")
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):
Expand Down