15
0

- Add remove_nose.patch to eliminate nose dependency. The patch

is not very good, it still skips plenty of yield tests (which
  were ignored even before, so it is not even a regression).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parameterized?expand=0&rev=20
This commit is contained in:
2020-09-14 15:12:33 +00:00
committed by Git OBS Bridge
parent 3f9d7d9c4b
commit 1d328b93fb
3 changed files with 139 additions and 4 deletions

View File

@@ -27,14 +27,15 @@ Source: https://files.pythonhosted.org/packages/source/p/parameterized/p
# PATCH-FIX-UPSTREAM skip_Documentation_tests.patch gh#wolever/parameterized#84 mcepl@suse.com
# Skip tests failing with Python 3.8
Patch0: skip_Documentation_tests.patch
# PATCH-FIX-UPSTREAM remove_nose.patch mcepl@suse.com
# Remove nose dependency (patch is not very good, DO NOT SEND UPSTREAM!)
Patch1: remove_nose.patch
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose2}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-nose
Suggests: python-nose2
BuildArch: noarch
%python_subpackages
@@ -55,8 +56,7 @@ Parameterized testing with any Python test framework.
%check
export LANG=en_US.UTF8
%{python_expand nosetests-%$python_version}
%{python_expand nose2-%$python_version}
%{python_expand nose2-%$python_version -v -B --pretty-assert}
%python_exec -m unittest parameterized.test
%pytest parameterized/test.py