11
0
Files
python-tornado6/ignore-resourcewarning-doctests.patch
Dirk Mueller e99de4e2d1 Accepting request 868396 from home:bnavigator:branches:devel:languages:python
- Update to version 6.1.0
  * Full changelog can be found at
    https://www.tornadoweb.org/en/stable/releases/v6.1.0.html
- Drop patches not applying anymore.
  * python-tornado6-httpclient-test.patch
  * skip-failing-tests.patch
  * tornado-testsuite_timeout.patch
- Refresh and comment ignore-resourcewarning-doctests.patch
- Fix documentation deduplication

OBS-URL: https://build.opensuse.org/request/show/868396
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado6?expand=0&rev=13
2021-02-01 17:34:14 +00:00

38 lines
1.4 KiB
Diff

Index: tornado-6.0.4/tornado/util.py
===================================================================
--- tornado-6.0.4.orig/tornado/util.py 2020-03-11 11:42:49.610254636 +0100
+++ tornado-6.0.4/tornado/util.py 2020-03-11 11:43:51.470603323 +0100
@@ -468,5 +468,7 @@ else:
def doctests():
# type: () -> unittest.TestSuite
import doctest
+ import warnings
+ warnings.simplefilter("ignore", ResourceWarning)
return doctest.DocTestSuite()
Index: tornado-6.0.4/tornado/httputil.py
===================================================================
--- tornado-6.0.4.orig/tornado/httputil.py 2020-03-11 11:42:49.610254636 +0100
+++ tornado-6.0.4/tornado/httputil.py 2020-03-11 11:44:46.178911693 +0100
@@ -1032,6 +1032,8 @@ def encode_username_password(
def doctests():
# type: () -> unittest.TestSuite
import doctest
+ import warnings
+ warnings.simplefilter("ignore", ResourceWarning)
return doctest.DocTestSuite()
Index: tornado-6.0.4/tornado/iostream.py
===================================================================
--- tornado-6.0.4.orig/tornado/iostream.py 2020-03-11 11:42:49.610254636 +0100
+++ tornado-6.0.4/tornado/iostream.py 2020-03-11 11:45:31.015164413 +0100
@@ -1677,5 +1677,7 @@ class PipeIOStream(BaseIOStream):
def doctests() -> Any:
import doctest
+ import warnings
+ warnings.simplefilter("ignore", ResourceWarning)
return doctest.DocTestSuite()