diff --git a/ignore-warnings-doctests.patch b/ignore-warnings-doctests.patch new file mode 100644 index 0000000..1eb6d6e --- /dev/null +++ b/ignore-warnings-doctests.patch @@ -0,0 +1,18 @@ +Index: nose2-0.9.1/nose2/tests/functional/test_doctests_plugin.py +=================================================================== +--- nose2-0.9.1.orig/nose2/tests/functional/test_doctests_plugin.py ++++ nose2-0.9.1/nose2/tests/functional/test_doctests_plugin.py +@@ -1,8 +1,13 @@ ++import warnings + from nose2.tests._common import FunctionalTestCase, support_file + + + class TestDoctestsPlugin(FunctionalTestCase): + ++ def setUp(self): ++ super(TestDoctestsPlugin, self).setUp() ++ warnings.simplefilter('ignore') ++ + def test_simple(self): + proc = self.runIn( + 'scenario/doctests', diff --git a/python-nose2.changes b/python-nose2.changes index d567b83..be1f9f0 100644 --- a/python-nose2.changes +++ b/python-nose2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 11 03:25:06 UTC 2019 - Steve Kowalik + +- Add ignore-warnings-doctests.patch to supress warnings when running + doctests. + ------------------------------------------------------------------- Mon Sep 30 13:20:05 UTC 2019 - Tomáš Chvátal diff --git a/python-nose2.spec b/python-nose2.spec index a014e9b..3845799 100644 --- a/python-nose2.spec +++ b/python-nose2.spec @@ -27,6 +27,7 @@ URL: https://github.com/nose-devs/nose2 Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz Patch0: remove_unittest2.patch Patch1: fix-mock-dep.patch +Patch2: ignore-warnings-doctests.patch BuildRequires: %{python_module coverage >= 4.4.1} BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools}