guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/09: gnu: python-attrs: Remove test deadlines on riscv64-linux.


From: guix-commits
Subject: 01/09: gnu: python-attrs: Remove test deadlines on riscv64-linux.
Date: Tue, 12 Jul 2022 10:41:48 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 908b680a5f213620c19c157223b45ccf3e534ade
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 12 12:35:56 2022 +0300

    gnu: python-attrs: Remove test deadlines on riscv64-linux.
    
    * gnu/packages/python-xyz.scm (python-attrs)[arguments]: When building
    for riscv64-linux remove the hypothesis test deadlines.
---
 gnu/packages/python-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c28b0675ad..f146746058 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19000,6 +19000,15 @@ from the header, as well as section details and data 
available.")
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
+                  ,@(if (target-riscv64?)
+                      ;; TODO: Remove the conditional on staging.
+                      `((add-after 'unpack 'remove-test-hypothesis-deadlines
+                          (lambda _
+                            (substitute* "tests/test_make.py"
+                              (("assume, given") "assume, given, settings")
+                              (("( +)@given" all spaces)
+                               (string-append spaces 
"@settings(deadline=None)\n" all))))))
+                      '())
                   (replace 'check
                     (lambda* (#:key tests? #:allow-other-keys)
                       (when tests?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]