Accepting request 718214 from devel:languages:python:pytest

- Skip failing pytest5 checks that need tweaking upstream

OBS-URL: https://build.opensuse.org/request/show/718214
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-sugar?expand=0&rev=5
This commit is contained in:
2019-07-30 11:06:11 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 24 07:09:44 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Skip failing pytest5 checks that need tweaking upstream
-------------------------------------------------------------------
Tue Feb 12 15:52:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -23,7 +23,7 @@ Release: 0
Summary: Pretty printer for pytest progress
License: BSD-3-Clause
Group: Development/Languages/Python
URL: http://pivotfinland.com/pytest-sugar/
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
BuildRequires: %{python_module pytest}
@@ -31,7 +31,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module termcolor}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest
Requires: python-pytest < 5.0
Requires: python-termcolor
BuildArch: noarch
%python_subpackages
@@ -51,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