diff --git a/python-case.changes b/python-case.changes index b0d40b4..3bd9e68 100644 --- a/python-case.changes +++ b/python-case.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Sep 15 04:38:57 UTC 2021 - Steve Kowalik + +- Add remove-nose.patch: + * Stop using nose to skip tests. +- Adjust Requires from python-nose to python-pytest. + ------------------------------------------------------------------- Sun Aug 16 06:43:43 UTC 2020 - John Vandenberg diff --git a/python-case.spec b/python-case.spec index 18e8172..79bde74 100644 --- a/python-case.spec +++ b/python-case.spec @@ -1,7 +1,7 @@ # # spec file for package python-case # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,11 +27,12 @@ URL: http://github.com/celery/case Source: https://files.pythonhosted.org/packages/source/c/case/case-%{version}.tar.gz Patch0: remove_unittest2.patch Patch1: remove_coverage.patch +Patch2: remove-nose.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-mock >= 2.0 -Requires: python-nose >= 1.3.7 +Requires: python-pytest Requires: python-setuptools Requires: python-six BuildArch: noarch diff --git a/remove-nose.patch b/remove-nose.patch new file mode 100644 index 0000000..11ad72a --- /dev/null +++ b/remove-nose.patch @@ -0,0 +1,13 @@ +Index: case-1.5.3/case/skip.py +=================================================================== +--- case-1.5.3.orig/case/skip.py ++++ case-1.5.3/case/skip.py +@@ -4,7 +4,7 @@ import importlib + import os + import sys + +-from nose import SkipTest ++from unittest import SkipTest + + from .utils import decorator, symbol_by_name +