15
0

- Update to 0.7.1:

- calling `setUp` and `tearDown` in parameterized classesq
- Add skip_Documentation_tests.patch to skip over test cases,
  failing with Python 3.8. gh#wolever/parameterized#84

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parameterized?expand=0&rev=14
This commit is contained in:
2019-12-05 15:15:14 +00:00
committed by Git OBS Bridge
parent 1fd3449c50
commit 7d01845bb4
5 changed files with 41 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-parameterized
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,24 +18,26 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-parameterized
Version: 0.7.0
Version: 0.7.1
Release: 0
Summary: Parameterized testing
License: BSD-2-Clause
Url: https://github.com/wolever/parameterized
URL: https://github.com/wolever/parameterized
Source: https://files.pythonhosted.org/packages/source/p/parameterized/parameterized-%{version}.tar.gz
# 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
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose2}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module unittest2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-nose
Suggests: python-nose2
Suggests: python-unittest2
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@@ -45,6 +47,7 @@ Not working with supportest "pytest" versions
%prep
%setup -q -n parameterized-%{version}
%autopatch -p1
%build
%python_build
@@ -55,6 +58,7 @@ Not working with supportest "pytest" versions
%check
export LANG=en_US.UTF8
# gh#wolever/parameterized#84
%{python_expand nosetests-%$python_version}
%{python_expand nose2-%$python_version}
%{python_expand unit2-%$python_version}