14
0
forked from pool/python-nose2

- Add ignore-warnings-doctests.patch to supress warnings when running

doctests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=14
This commit is contained in:
2019-11-11 03:26:34 +00:00
committed by Git OBS Bridge
parent 78d0c4c626
commit 39c9aae16f
3 changed files with 25 additions and 0 deletions

View File

@@ -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',

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 11 03:25:06 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>
- Add ignore-warnings-doctests.patch to supress warnings when running
doctests.
-------------------------------------------------------------------
Mon Sep 30 13:20:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -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}