diff --git a/ignore-py310-deprecation-warnings.patch b/ignore-py310-deprecation-warnings.patch new file mode 100644 index 0000000..a46cdb1 --- /dev/null +++ b/ignore-py310-deprecation-warnings.patch @@ -0,0 +1,23 @@ +Index: tornado-6.1/tornado/test/runtests.py +=================================================================== +--- tornado-6.1.orig/tornado/test/runtests.py ++++ tornado-6.1/tornado/test/runtests.py +@@ -160,6 +160,18 @@ def main(): + message="PY_SSIZE_T_CLEAN will be required", + ) + ++ # https://github.com/tornadoweb/tornado/issues/3033 ++ warnings.filterwarnings( ++ "ignore", ++ category=DeprecationWarning, ++ message=r"ssl.*", ++ ) ++ warnings.filterwarnings( ++ "ignore", ++ category=DeprecationWarning, ++ message="There is no current event loop", ++ ) ++ + logging.getLogger("tornado.access").setLevel(logging.CRITICAL) + + define( diff --git a/python-tornado6.changes b/python-tornado6.changes index e87a3f7..44bc569 100644 --- a/python-tornado6.changes +++ b/python-tornado6.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Dec 11 16:16:20 UTC 2021 - Ben Greiner + +- Filter Python 3.10 deprecation warnings during testing + * ignore-py310-deprecation-warnings.patch + * gh#tornadoweb/tornado#3033 + ------------------------------------------------------------------- Thu Aug 5 12:51:05 UTC 2021 - Ben Greiner diff --git a/python-tornado6.spec b/python-tornado6.spec index fa24f32..78d19fb 100644 --- a/python-tornado6.spec +++ b/python-tornado6.spec @@ -28,6 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/t/tornado/tornado Source99: python-tornado6-rpmlintrc # PATCH-FIX-OPENSUSE ignore-resourcewarning-doctests.patch -- ignore resource warnings on OBS Patch0: ignore-resourcewarning-doctests.patch +# PATCH-FIX-OPENSUSE ignore-py310-deprecation-warnings.patch -- gh#tornadoweb/tornado#3033 +Patch1: ignore-py310-deprecation-warnings.patch BuildRequires: %{python_module base >= 3.5} BuildRequires: %{python_module devel} BuildRequires: %{python_module pycares}