forked from pool/python-tornado6
Accepting request 939930 from home:bnavigator:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/939930 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado6?expand=0&rev=20
This commit is contained in:
23
ignore-py310-deprecation-warnings.patch
Normal file
23
ignore-py310-deprecation-warnings.patch
Normal file
@@ -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(
|
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 11 16:16:20 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <code@bnavigator.de>
|
||||
|
||||
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user