gnu: python-cffi: Disable tests that fail with newer glibc.

* gnu/packages/libffi.scm (python-cffi)[arguments]: Ignore two tests.
This commit is contained in:
Marius Bakke 2022-07-22 16:12:46 +02:00
parent 17f0e8d24f
commit cafb72db5d
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -110,7 +110,12 @@ (define-public python-cffi
"linker_so='gcc -shared')")))
(substitute* "testing/cffi0/test_ownlib.py"
(("\"cc testownlib") "\"gcc testownlib"))
(invoke "py.test" "-v" "c/" "testing/")))
(invoke "pytest" "-v" "c/" "testing/"
;; Disable tests that fail (harmlessly) with glibc
;; 2.34 and later:
;; https://foss.heptapod.net/pypy/cffi/-/issues/528
"-k" (string-append "not TestFFI.test_dlopen_handle "
"and not test_dlopen_handle"))))
(add-before 'check 'patch-paths-of-dynamically-loaded-libraries
(lambda* (#:key inputs #:allow-other-keys)
;; Shared libraries should be referred by their absolute path as