File ignore-resourcewarning-doctests.patch of Package saltbundlepy-tornado
Index: tornado-6.3.2/tornado/util.py
===================================================================
--- tornado-6.3.2.orig/tornado/util.py
+++ tornado-6.3.2/tornado/util.py
@@ -458,5 +458,7 @@ else:
def doctests():
# type: () -> unittest.TestSuite
import doctest
+ import warnings
+ warnings.simplefilter("ignore", ResourceWarning)
return doctest.DocTestSuite()
Index: tornado-6.3.2/tornado/httputil.py
===================================================================
--- tornado-6.3.2.orig/tornado/httputil.py
+++ tornado-6.3.2/tornado/httputil.py
@@ -1019,6 +1019,8 @@ def encode_username_password(
def doctests():
# type: () -> unittest.TestSuite
import doctest
+ import warnings
+ warnings.simplefilter("ignore", ResourceWarning)
return doctest.DocTestSuite()
Index: tornado-6.3.2/tornado/iostream.py
===================================================================
--- tornado-6.3.2.orig/tornado/iostream.py
+++ tornado-6.3.2/tornado/iostream.py
@@ -1650,5 +1650,7 @@ class PipeIOStream(BaseIOStream):
def doctests() -> Any:
import doctest
+ import warnings
+ warnings.simplefilter("ignore", ResourceWarning)
return doctest.DocTestSuite()