17
0

- 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:
2019-11-04 15:46:02 +00:00
committed by Git OBS Bridge
parent 7938429d29
commit 4f7cfc07f1
3 changed files with 12 additions and 4 deletions

View File

@@ -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}