From cafb72db5d2ff5240c67e2a2684f4603977c7214 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 22 Jul 2022 16:12:46 +0200 Subject: gnu: python-cffi: Disable tests that fail with newer glibc. * gnu/packages/libffi.scm (python-cffi)[arguments]: Ignore two tests. --- gnu/packages/libffi.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gnu/packages/libffi.scm') diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm index 953f386770..0c59509a91 100644 --- a/gnu/packages/libffi.scm +++ b/gnu/packages/libffi.scm @@ -110,7 +110,12 @@ conversions for values passed between the two languages.") "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 -- cgit v1.2.3