UPdate patch

This commit is contained in:
Fabian Affolter 2020-09-14 09:26:18 +02:00
parent c7e0b2e620
commit dab5687dce
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F
2 changed files with 12 additions and 25 deletions

View File

@ -1,24 +1,11 @@
From 58f264d25c9dc427733a6a72fedc7b0e3b9c8e06 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
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\..*"

View File

@ -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