Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 903257

Summary: =dev-python/pyhamcrest-2.0.4 fails tests (with >=dev-python/numpy-1.24.0)
Product: Gentoo Linux Reporter: MW <spamfilter-1>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED UPSTREAM    
Severity: normal CC: DuPol, sci, spamfilter-1
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/hamcrest/PyHamcrest/issues/228
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Patch for the ebuild, deselecting the offending tests

Description MW 2023-03-27 20:57:29 UTC
Created attachment 859139 [details]
build.log

Building =dev-python/pyhamcrest-2.0.4 with USE="test" fails due to expired aliases in NumPy. I have reported the issue upstream: https://github.com/hamcrest/PyHamcrest/issues/228

Until upstream has fixed this, we should probably deselect the offending tests:

> 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
Comment 1 MW 2023-03-27 21:05:05 UTC
Created attachment 859141 [details, diff]
Patch for the ebuild, deselecting the offending tests
Comment 2 MW 2024-06-26 23:27:55 UTC
This has now been fixed upstream:

https://github.com/hamcrest/PyHamcrest/commit/b45547101b82d1c8fc126c7425c5a532f683766e