hamcrest / PyHamcrest

Hamcrest matchers for Python
http://hamcrest.org/
Other
766 stars 111 forks source link

Remove test_numpy_numeric_type_{complex,float,int} for compatibility with NumPy >= 1.24.0 #228

Closed martenwa closed 2 months ago

martenwa commented 1 year ago

Numerous aliases which were deprecated in NumPy 1.20.0 have finally been removed in NumPy 1.24.0 (see the NumPy 1.24 Release Notes). This causes the following tests to fail with NumPy >= 1.24.0:

tests/hamcrest_unit_test/number/iscloseto_test.py::IsNumericTest::test_numpy_numeric_type_complex
tests/hamcrest_unit_test/number/iscloseto_test.py::IsNumericTest::test_numpy_numeric_type_float
tests/hamcrest_unit_test/number/iscloseto_test.py::IsNumericTest::test_numpy_numeric_type_int

Please remove these tests.

martenwa commented 2 months ago

This has been addressed in commit b455471. Thanks!