From b835357bf212c575dfdc6bfb6d13433400e6a12f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 21 Mar 2025 07:59:34 +0100 Subject: [PATCH] gnu: python-strict-rfc3339: Disable more tests on 32-bit platforms. * gnu/packages/python-xyz.scm (python-strict-rfc3339)[arguments]: Conditionally ignore the TestTimestampToRFC3339UTCOffset tests on 32-bit platforms due to the size of the time_t type. Change-Id: I2c9844c6a022946d9ec917bb3a6b06777b0fc260 --- gnu/packages/python-xyz.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0a158270f67a915005009368aeb98077a101f43d..0b3ebd4e945c8ed26ab112a4cbb9d61ad51973b1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -37677,7 +37677,12 @@ statements in OFX files.") ;; The timestamp to local offset tests fail due to ;; missing timezone data (see: ;; https://github.com/danielrichman/strict-rfc3339/issues/9). - "-k" "not LocalOffset"))))))) + "-k" + #$@(if (or (target-x86-32?) (target-arm32?)) + ;; On 32-bit platforms the size of time_t is + ;; too small for these tests. + '("not LocalOffset and not TestTimestampToRFC3339UTCOffset") + '("not LocalOffset"))))))))) (native-inputs (list python-pytest)) (home-page "https://github.com/danielrichman/strict-rfc3339") (synopsis "RFC3339 procedures library")