From 737b775c02de6cb0e03ff74cd5236ab4bd7776d11dc0fb826d8dfd5976a72eb9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 7 Nov 2025 03:49:58 +0000 Subject: [PATCH] skip tests on 32 bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msgspec?expand=0&rev=14 --- python-msgspec.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python-msgspec.spec b/python-msgspec.spec index 5ca1b40..331bb91 100644 --- a/python-msgspec.spec +++ b/python-msgspec.spec @@ -58,7 +58,12 @@ export CFLAGS="%{optflags}" %check # Requires to import the module, but other tests require the path # Can be dropped next release -%pytest_arch -k 'not test_raw_copy_doesnt_leak' +donttest="test_raw_copy_doesnt_leak" +if [ $(getconf LONG_BIT) = 32 ]; then + # Overflow errors on 32 bit arches + donttest="$donttest or test_hashtable or test_decoding_large_arrays or test_timestamp" +fi +%pytest_arch -k "not ($donttest)" %files %{python_files} %doc README.md