Andreas Enge <andr...@enge.fr> writes:

> Am Sun, Feb 23, 2025 at 06:21:27PM +0100 schrieb Ricardo Wurmus:
>> > I also encounter the failure below in python-uvicorn, which is a
>> > prerequisite for rest.
>> This may be a non-deterministic failure.  It built fine on my laptop.
>
> Unless you have an ARM laptop, which exist, but are rare, there may be a
> misunderstanding - I am still speaking of aarch64 here.

When building natively, though, I also see a test failure in
python-uvicorn.  I've locally worked around this with a patch:

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1539f38bd1..18011c6b0f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32135,6 +32135,11 @@ (define-public python-anyio
                 (string-append
                  "not test_is_block_device"
 
+                 ,@(cond
+                    ((target-aarch64?)
+                     '(" and not test_keyboardinterrupt_during_test"))
+                    (#t '()))
+
                  ;; These fail because of network (or specifically IPv6
                  ;; network) access (see:
                  ;; https://github.com/agronholm/anyio/issues/417).
--8<---------------cut here---------------end--------------->8---

Why this didn't fail with qemu emulation I don't know.

-- 
Ricardo

Reply via email to