guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e253e35523815a27d41e8160f3eb5a1b772428e4
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Tue Oct 7 16:34:54 2025 +0900

    gnu: python-afdko: Skip two failing tests.
    
    * gnu/packages/fontutils.scm (python-afdko) [build-system]: Switch to
    pyproject-build-system.
    [#:test-flags]: New argument.
    [#:phases] {check}: Delete phase.
    
    Change-Id: Ib0cc24e9a83933030c8315fb3638856eb47659da
---
 gnu/packages/fontutils.scm | 40 +++++++++++++++++++++++-----------------
 1 file changed, 23 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index d4611947b4..9394c80236 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -196,9 +196,31 @@ them as it goes.")
               (for-each delete-file
                         (find-files
                          "." 
"Feat(Parser|Lexer).*\\.(h|cpp|interp|tokens)$")))))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags
+      #~(list
+         "--dist" "loadfile" "-n"
+         (number->string (parallel-job-count))
+         "-k" (string-join
+               ;; This test fails because of a different date
+               ;; in the copyright header of an expected file
+               ;; since an update to ffmpeg.
+               '("not test_alt_missing_glyph"
+                 ;; AssertionError: assert False
+                 "test_build_font_and_check_messages"
+                 "test_duplicate_warning_messages_bug751"
+                 "test_cli_numerics"
+                 ;; The test_decimals_ufo and
+                 ;; test_type1_supported_hint started failing in
+                 ;; 4.0.2, due to small variations compared to the
+                 ;; expected output, likely caused by our newer
+                 ;; python-fonttools (see:
+                 ;; <https://github.com/adobe-type-tools/afdko/issues/1805>).
+                 "test_decimals_ufo"
+                 "test_type1_supported_hint")
+               " and not "))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'use-c++17
@@ -253,22 +275,6 @@ them as it goes.")
           ;; The test suite expects the commands to be Python rather than
           ;; shell scripts, so move the wrap phase after the tests.
           (delete 'wrap)
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                (setenv "HOME" "/tmp")
-                (invoke "pytest" "-vv" "--dist" "loadfile" "-n"
-                        (number->string (parallel-job-count))
-                        "-k" (string-join
-                              ;; This test fails because of a different date
-                              ;; in the copyright header of an expected file
-                              ;; since an update to ffmpeg.
-                              (list "not test_alt_missing_glyph"
-                                    ;; AssertionError: assert False
-                                    "test_build_font_and_check_messages"
-                                    "test_duplicate_warning_messages_bug751"
-                                    "test_cli_numerics")
-                              " and not ")))))
           (add-after 'check 'wrap
             (assoc-ref %standard-phases 'wrap))
           (add-before 'wrap 'wrap-PATH

Reply via email to