rekado pushed a commit to branch wip-python-team
in repository guix.

commit 79d13482e49efd86ec992af83daf5209b12f9ff1
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Fri May 3 08:25:02 2024 +0200

    gnu: python-pytest-shutil: Disable a test.
    
    * gnu/packages/python-check.scm (python-pytest-shutil)[build-system]: Use
    pyproject-build-system.
    [arguments]: Disable test_pretty_formatter.
    
    Change-Id: I862320feab5b3c6e375bf652deced6a631dfc575
---
 gnu/packages/python-check.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 9124e9c1c4..c5607df1ec 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1266,16 +1266,19 @@ isort.")
        (sha256
         (base32
          "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
+     (list
+      #:test-flags
+      ;; This test is sensitive to generated terminal escape codes.
+      '(list "-k" "not test_pretty_formatter")
+      #:phases
+      '(modify-phases %standard-phases
          (add-after 'unpack 'use-path-instead-of-path.py
            ;; path.py is obsolete.
            (lambda _
              (substitute* "setup.py"
-               (("'path.py'")
-                "'path'"))))
+               (("'path.py'") "'path'"))))
          (add-after 'unpack 'patch-tests
            (lambda _
              (mkdir "/tmp/bin")

Reply via email to