- Add pytest4.patch allowing the test suite to pass with pytest 4
Because of gh#hamcrest/PyHamcrest#123 we have to remove
tests/hamcrest_unit_test/core/is{_test,instanceof_test}.py to
make the test suite passing.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyHamcrest?expand=0&rev=11
This commit is contained in:
@@ -31,7 +31,7 @@ Patch0: 0001-Add-boolean-matchers.patch
|
||||
Patch1: pytest4.patch
|
||||
BuildRequires: %{python_module hypothesis >= 1.11}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest < 4.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six >= 1.4}
|
||||
BuildRequires: fdupes
|
||||
@@ -61,6 +61,8 @@ rm pytest.ini
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/hamcrest
|
||||
|
||||
%check
|
||||
# gh#hamcrest/PyHamcrest#123
|
||||
rm -f tests/hamcrest_unit_test/core/is{_test,instanceof_test}.py
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user