GNU bug report logs - #75980
[PATCH rust-team 000/106] Add cargo-development-inputs.

Previous Next

Package: guix-patches;

Reported by: Herman Rimm <herman <at> rimm.ee>

Date: Fri, 31 Jan 2025 21:06:01 UTC

Severity: normal

Tags: patch

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

Full log


Message #278 received at 75980 <at> debbugs.gnu.org (full text, mbox):

From: Herman Rimm <herman <at> rimm.ee>
To: 75980 <at> debbugs.gnu.org
Subject: [PATCH rust-team 076/106] gnu: rust-pyo3-0.15: Run tests.
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





This bug report was last modified 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.