From 81d76dacac66a0b5fec979948234cda54a816beb Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Nov 21 2023 13:22:45 +0000 Subject: Report and skip a failing test in F40/Rawhide only --- diff --git a/python-docx.spec b/python-docx.spec index b1d388b..16e09be 100644 --- a/python-docx.spec +++ b/python-docx.spec @@ -98,6 +98,12 @@ PYTHONPATH="${PWD}/src" %make_build -C docs latex \ %check +%if 0%{?fedora} > 39 +# Test failure with libxml2 2.12.0 in Fedora Rawhide +# https://github.com/python-openxml/python-docx/issues/1302 +k="${k-}${k+ and }not (DescribeParseXml and it_accepts_unicode_providing_there_is_no_encoding_declaration)" +%endif + # Rather than using the %%tox macro, we run test commands from tox.ini manually # so that we can pass extra arguments. We can’t reasonably ask upstream to add # {posargs} to tox.ini because there are two different test executors (pytest