[packages/python3-cbor2] - fixed tests on x32

qboosh qboosh at pld-linux.org
Sun May 19 18:24:53 CEST 2024


commit 0dde76354028ca82d2b7bdb1190872dcaf72a84c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 19 18:25:26 2024 +0200

    - fixed tests on x32

 python3-cbor2.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/python3-cbor2.spec b/python3-cbor2.spec
index 564e63c..6625f4a 100644
--- a/python3-cbor2.spec
+++ b/python3-cbor2.spec
@@ -25,6 +25,7 @@ BuildRequires:	python3-pytest-cov
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	sed >= 4.0
 %if %{with doc}
 BuildRequires:	python3-packaging
 BuildRequires:	python3-sphinx_autodoc_typehints >= 1.2.0
@@ -62,6 +63,11 @@ Dokumentacja API modułu Pythona cbor2.
 %prep
 %setup -q -n cbor2-%{version}
 
+%ifarch x32
+# different exception raised
+%{__sed} -i -e 's/\(cause_exc_class =\) OverflowError/\1 ValueError/' tests/test_decoder.py
+%endif
+
 %build
 %py3_build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-cbor2.git/commitdiff/0dde76354028ca82d2b7bdb1190872dcaf72a84c



More information about the pld-cvs-commit mailing list