Skip tests that are unreliable with Python 3.12

epel10
Fabio Valentini 2 years ago
parent 947b06e0ad
commit 08ba6813ba
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -393,10 +393,15 @@ rm tests/test_pep_587.rs
%check %check
# * unit tests require an UTF-8 locale # * unit tests require an UTF-8 locale
# * unit tests require the "auto-initialize" feature # * unit tests require the "auto-initialize" feature
export LANG=C.utf8
%if 0%{?fedora} >= 39
# * skip a test that fails with Python 3.12: # * skip a test that fails with Python 3.12:
# https://github.com/PyO3/pyo3/issues/3305 # https://github.com/PyO3/pyo3/issues/3305
export LANG=C.utf8 # * skip tests that are unreliable with Python 3.12
%cargo_test -f auto-initialize -- -- --skip err::tests::fetching_panic_exception_resumes_unwind %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 %endif
%changelog %changelog

Loading…
Cancel
Save