all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70997] [PATCH] gnu: python-scikit-image: Disable test_ellipse_parameter_stability.
@ 2024-05-17  8:00 Christopher Baines
  2024-05-17 16:00 ` Sharlatan Hellseher
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2024-05-17  8:00 UTC (permalink / raw)
  To: 70997
  Cc: Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, Tanguy Le Carrour, jgart

As it's flaky, see https://github.com/scikit-image/scikit-image/issues/7061

* gnu/packages/python-science.scm (python-scikit-image)[arguments]: Add 'patch
phase.

Change-Id: Ic1fc301eb0fad5330c34780ce096c446c1076824
---
 gnu/packages/python-science.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 861badad2e..d1a43b23ed 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -475,6 +475,13 @@ (define-public python-scikit-image
      (list
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch
+            (lambda _
+              ;; Disable flaky test
+              (substitute* "skimage/measure/tests/test_fit.py"
+                (("def test_ellipse_parameter_stability():")
+                 "@pytest.mark.xfail(reason=\"https://github.com/scikit-image/scikit-image/issues/7061\")
+def test_ellipse_parameter_stability():"))))
           (add-before 'build 'change-home-dir
             (lambda _
               ;; Change from /homeless-shelter to /tmp for write permission.

base-commit: 0846eaecd45783bf40e8dc67b0c16f71068524b7
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#70997] [PATCH] gnu: python-scikit-image: Disable test_ellipse_parameter_stability.
  2024-05-17  8:00 [bug#70997] [PATCH] gnu: python-scikit-image: Disable test_ellipse_parameter_stability Christopher Baines
@ 2024-05-17 16:00 ` Sharlatan Hellseher
  2024-05-26 16:20   ` bug#70997: " Christopher Baines
  0 siblings, 1 reply; 3+ messages in thread
From: Sharlatan Hellseher @ 2024-05-17 16:00 UTC (permalink / raw)
  To: 70997

[-- Attachment #1: Type: text/plain, Size: 291 bytes --]


Hi Christopher


I think you may add the test to ignore list without substituting it.

--8<---------------cut here---------------start------------->8---
#:test-flags #~(list "-k" "test_ellipse_parameter_stability")
--8<---------------cut here---------------end--------------->8---

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#70997: [PATCH] gnu: python-scikit-image: Disable test_ellipse_parameter_stability.
  2024-05-17 16:00 ` Sharlatan Hellseher
@ 2024-05-26 16:20   ` Christopher Baines
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2024-05-26 16:20 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: 70997-done

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

Sharlatan Hellseher <sharlatanus@gmail.com> writes:

> I think you may add the test to ignore list without substituting it.
>
> --8<---------------cut here---------------start------------->8---
> #:test-flags #~(list "-k" "test_ellipse_parameter_stability")
> --8<---------------cut here---------------end--------------->8---

Thanks for the suggestion, I think that actually selects the test to
run, but adding not to the start seems to skip the named test, so I've
pushed this as a4a45669c76f80d5126add818df22f42547bb4a2.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-26 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17  8:00 [bug#70997] [PATCH] gnu: python-scikit-image: Disable test_ellipse_parameter_stability Christopher Baines
2024-05-17 16:00 ` Sharlatan Hellseher
2024-05-26 16:20   ` bug#70997: " Christopher Baines

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.