commit: a603a7c799137c6bfbf86be7b65dc339e42ad052 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun May 19 08:00:20 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun May 19 11:47:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a603a7c7
dev-python/uncertainties: Fix tests with numpy-2 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild b/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild index 5c1abc030534..09df84db552d 100644 --- a/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild +++ b/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,6 +31,10 @@ distutils_enable_sphinx doc --no-autodoc src_prepare() { # not used in py3, see https://github.com/lebigot/uncertainties/pull/168 sed -i -e '/future/d' setup.py || die + # fix tests with numpy-2 + # https://github.com/lmfit/uncertainties/pull/225 + sed -e "/assert not hasattr(numpy, 'acos')/d" \ + -i uncertainties/unumpy/test_unumpy.py || die distutils-r1_src_prepare }