From 08ba6813ba95fef7bcae0bbd920887a53c805f1f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 11 Jul 2023 00:24:19 +0200 Subject: [PATCH] Skip tests that are unreliable with Python 3.12 --- rust-pyo3.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rust-pyo3.spec b/rust-pyo3.spec index bc6dac4..3674329 100644 --- a/rust-pyo3.spec +++ b/rust-pyo3.spec @@ -393,10 +393,15 @@ rm tests/test_pep_587.rs %check # * unit tests require an UTF-8 locale # * unit tests require the "auto-initialize" feature +export LANG=C.utf8 +%if 0%{?fedora} >= 39 # * skip a test that fails with Python 3.12: # https://github.com/PyO3/pyo3/issues/3305 -export LANG=C.utf8 -%cargo_test -f auto-initialize -- -- --skip err::tests::fetching_panic_exception_resumes_unwind +# * skip tests that are unreliable with Python 3.12 +%cargo_test -f auto-initialize -- -- --skip err::tests::fetching_panic_exception_resumes_unwind --skip types::list::tests::test_append_refcnt --skip types::list::tests::test_insert_refcnt +%else +%cargo_test -f auto-initialize +%endif %endif %changelog