From dab5687dce2051f7dfd0249b10eab4e577a21443 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Sep 2020 09:26:18 +0200 Subject: [PATCH] UPdate patch --- ...rn-DeprecationWarning-into-Exception.patch | 35 ++++++------------- python-tornado.spec | 2 +- 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/Do-not-turn-DeprecationWarning-into-Exception.patch b/Do-not-turn-DeprecationWarning-into-Exception.patch index 2e55e7a..9f4cf4b 100644 --- a/Do-not-turn-DeprecationWarning-into-Exception.patch +++ b/Do-not-turn-DeprecationWarning-into-Exception.patch @@ -1,24 +1,11 @@ -From 58f264d25c9dc427733a6a72fedc7b0e3b9c8e06 Mon Sep 17 00:00:00 2001 -From: Lumir Balhar -Date: Thu, 16 May 2019 13:50:14 +0200 -Subject: [PATCH] Do not turn DeprecationWarning into Exception - ---- - tornado/test/runtests.py | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py -index dab76a2..117fd1c 100644 ---- a/tornado/test/runtests.py -+++ b/tornado/test/runtests.py -@@ -124,7 +124,6 @@ def main(): - # Tornado generally shouldn't use anything deprecated, but some of - # our dependencies do (last match wins). - warnings.filterwarnings("ignore", category=DeprecationWarning) -- warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\..*") - warnings.filterwarnings("ignore", category=PendingDeprecationWarning) - warnings.filterwarnings( - "error", category=PendingDeprecationWarning, module=r"tornado\..*" --- -2.21.0 - +diff -Nur tornado-6.0.4/tornado/test/runtests.py tornado-6.0.4-new/tornado/test/runtests.py +--- tornado-6.0.4/tornado/test/runtests.py 2020-03-02 20:21:37.000000000 +0100 ++++ tornado-6.0.4-new/tornado/test/runtests.py 2020-09-14 09:21:31.818678680 +0200 +@@ -124,7 +124,6 @@ + # Tornado generally shouldn't use anything deprecated, but some of + # our dependencies do (last match wins). + warnings.filterwarnings("ignore", category=DeprecationWarning) +- warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\..*") + warnings.filterwarnings("ignore", category=PendingDeprecationWarning) + warnings.filterwarnings( + "error", category=PendingDeprecationWarning, module=r"tornado\..*" diff --git a/python-tornado.spec b/python-tornado.spec index 63a9eb1..af33738 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -11,7 +11,7 @@ Source0: %{pypi_source} # Do not turn DeprecationWarning in tornado module into Exception # fixes FTBFS with Python 3.8 -#Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch +Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch BuildRequires: gcc