diff --git a/python-bleach.changes b/python-bleach.changes index 3933183..0058eb7 100644 --- a/python-bleach.changes +++ b/python-bleach.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 19 12:02:58 UTC 2019 - Tomáš Chvátal + +- Restrict pytest to <5.0; upstream has an issue already reported + ------------------------------------------------------------------- Sun Mar 3 09:14:50 UTC 2019 - John Vandenberg diff --git a/python-bleach.spec b/python-bleach.spec index 0f4242e..9a48cbe 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -28,7 +28,8 @@ URL: http://github.com/jsocol/bleach Source: https://files.pythonhosted.org/packages/source/b/bleach/bleach-%{version}.tar.gz Patch0: de-vendor.patch BuildRequires: %{python_module html5lib >= 1.0.0} -BuildRequires: %{python_module pytest >= 3.0.0} +# https://github.com/mozilla/bleach/issues/459 +BuildRequires: %{python_module pytest < 5.0} BuildRequires: %{python_module pytest-runner >= 2.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.9} @@ -63,13 +64,10 @@ rm -rf bleach/_vendor %install %python_install - %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} -} +%pytest %files %{python_files} %license LICENSE