public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pint] rpmlint-etc: Skip and document failure of test_equal_zero_nan_NP on recent numpy
Date: Sat, 12 Sep 2026 10:21:52 GMT [thread overview]
Message-ID: <178920851202.1.8588121254460113517.rpms-python-pint-34be7893c4d4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pint
Branch : rpmlint-etc
Commit : 34be7893c4d4a40d8d3851882395239b0639d55c
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2023-10-30T07:43:17-04:00
Stats : +9/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pint/c/34be7893c4d4a40d8d3851882395239b0639d55c?branch=rpmlint-etc
Log:
Skip and document failure of test_equal_zero_nan_NP on recent numpy
---
diff --git a/python-pint.spec b/python-pint.spec
index 8bc980a..4e795cb 100644
--- a/python-pint.spec
+++ b/python-pint.spec
@@ -75,7 +75,15 @@ find pint -type f -exec \
%pyproject_save_files pint
%check
-%pytest
+%global numpy_version %(\
+ %{python3} -c 'import numpy; print(numpy.__version__)' || echo 0)
+# test_equal_zero_nan_NP fails with numpy 1.25.1
+# https://github.com/hgrecco/pint/issues/1825
+%if v"%{numpy_version}" >= v"1.25.1"
+k="${k-}${k+ and }not (TestCompareNeutral and test_equal_zero_nan_NP)"
+%endif
+
+%pytest -k "${k-}"
%files -n python3-pint -f %{pyproject_files}
%{_bindir}/pint-convert
reply other threads:[~2026-09-12 10:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178920851202.1.8588121254460113517.rpms-python-pint-34be7893c4d4@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox