Subject: [PATCH rust-team 076/106] gnu: rust-pyo3-0.15: Run tests.

From: Herman Rimm <[email-masked]>
Date: Fri, 31 Jan 2025 22:10:37 +0100

* gnu/packages/crates-io.scm (rust-pyo3-0.15)[arguments]: Skip some
tests.  Add rust-serde-1.

Change-Id: Ic9f4d953e639469b671221e3f74b267ec67169a3
---
 gnu/packages/crates-io.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6351b271d48..9b65c576b62 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -59018,10 +59018,19 @@ (define-public rust-pyo3-0.15
         ("rust-half" ,rust-half-1)
         ("rust-proptest" ,rust-proptest-0.10)
         ("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde" ,rust-serde-1)
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-trybuild" ,rust-trybuild-1))
-       ;; FIXME: fails to initialize Python interpreter.
-       #:tests? #f))))
+       #:cargo-test-flags
+       ;; Most tests will not initialize a Python interpreter.
+       '("--features=auto-initialize" "--lib" "--" "--exact"
+         ;; unsafe precondition(s) violated: slice::from_raw_parts
+         ;; requires the pointer to be aligned and non-null, and the
+         ;; total size of the slice not to exceed `isize::MAX`
+         "--skip=unary_arithmetic"
+         "--skip=test_pickle"
+         ;; Actual output provides "help:" hints.
+         "--skip=test_compile_errors")))))
 
 (define-public rust-pyo3-0.13
   (package
-- 
2.47.1