Tomáš Chvátal
2019-07-24 12:08:39 +00:00
committed by Git OBS Bridge
parent 108b76c7e8
commit 015aeef5d7

View File

@@ -26,8 +26,7 @@ Group: Development/Languages/Python
URL: https://github.com/Frozenball/pytest-sugar
Source: https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz
Patch0: pytest4.patch
# https://github.com/Frozenball/pytest-sugar/issues/180
BuildRequires: %{python_module pytest < 5.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module termcolor}
BuildRequires: fdupes
@@ -52,7 +51,9 @@ pytest-sugar is a plugin for py.test that shows failures and errors instantly an
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
# test_item_count_after_pytest_collection_modifyitems - https://github.com/Frozenball/pytest-sugar/issues/180
# test_doctest - same as above
%pytest -k 'not test_item_count_after_pytest_collection_modifyitems and not test_doctest'
%files %{python_files}
%license LICENSE