public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pint] rpmlint-etc: Skip and document failure of test_equal_zero_nan_NP on recent numpy
@ 2026-09-12 10:21 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-12 10:21 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-12 10:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 10:21 [rpms/python-pint] rpmlint-etc: Skip and document failure of test_equal_zero_nan_NP on recent numpy Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox