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:
18
ignore-warnings-doctests.patch
Normal file
18
ignore-warnings-doctests.patch
Normal 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',
|
@@ -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>
|
Mon Sep 30 13:20:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -27,6 +27,7 @@ URL: https://github.com/nose-devs/nose2
|
|||||||
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
||||||
Patch0: remove_unittest2.patch
|
Patch0: remove_unittest2.patch
|
||||||
Patch1: fix-mock-dep.patch
|
Patch1: fix-mock-dep.patch
|
||||||
|
Patch2: ignore-warnings-doctests.patch
|
||||||
BuildRequires: %{python_module coverage >= 4.4.1}
|
BuildRequires: %{python_module coverage >= 4.4.1}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
Reference in New Issue
Block a user