Disable tests for lack of html5lib

epel9
Steve Traylen 3 years ago
parent dc38b01de6
commit 1a1203bf6d

@ -1,4 +1,4 @@
%bcond_without tests %bcond_with tests
Name: python-soupsieve Name: python-soupsieve
Version: 2.3.1 Version: 2.3.1
@ -12,6 +12,7 @@ Source0: https://github.com/facelessuser/soupsieve/archive/%{version}/%{n
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-beautifulsoup4
%global _description %{expand: %global _description %{expand:
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
@ -62,6 +63,8 @@ sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini
# test_contains_cdata_html and test_contains_own_cdata_html are disabled to unblock Python 3.10 rebuild # test_contains_cdata_html and test_contains_own_cdata_html are disabled to unblock Python 3.10 rebuild
# downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1962458 # downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1962458
%tox -- -- -k 'not test_namespace_xml_with_namespace and not test_contains_cdata_html and not test_contains_own_cdata_html' %tox -- -- -k 'not test_namespace_xml_with_namespace and not test_contains_cdata_html and not test_contains_own_cdata_html'
%else
%pyproject_check_import
%endif %endif
%files -n python3-soupsieve -f %{pyproject_files} %files -n python3-soupsieve -f %{pyproject_files}

Loading…
Cancel
Save