New patch to not turn DeprecationWarning in tornado module into Exception
This commit is contained in:
parent
66739ac22e
commit
246d60ba41
25
Do-not-turn-DeprecationWarning-into-Exception.patch
Normal file
25
Do-not-turn-DeprecationWarning-into-Exception.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From eccbc528d9800bdfef5e1795e6bada446aafaf43 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 | 2 --
|
||||||
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
|
||||||
|
index e4f938d3..cd2a5b87 100644
|
||||||
|
--- a/tornado/test/runtests.py
|
||||||
|
+++ b/tornado/test/runtests.py
|
||||||
|
@@ -127,8 +127,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
|
||||||
|
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 5.1.1
|
Version: 5.1.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Scalable, non-blocking web server and tools
|
Summary: Scalable, non-blocking web server and tools
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -20,6 +20,9 @@ Source0: %{pypi_source}
|
|||||||
# Tornado has them, mostly in docstrings and the tests treat them as errors
|
# Tornado has them, mostly in docstrings and the tests treat them as errors
|
||||||
# Fixed upstream: https://github.com/tornadoweb/tornado/commit/6dceb64ed27c1d48af22142f2ebae946f0e85e95
|
# Fixed upstream: https://github.com/tornadoweb/tornado/commit/6dceb64ed27c1d48af22142f2ebae946f0e85e95
|
||||||
Patch0: fix-syntax-warnings.patch
|
Patch0: fix-syntax-warnings.patch
|
||||||
|
# Do not turn DeprecationWarning in tornado module into Exception
|
||||||
|
# fixes FTBFS with Python 3.8
|
||||||
|
Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
@ -122,6 +125,10 @@ export ASYNC_TEST_TIMEOUT=10
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 16 2019 Lumír Balhar <lbalhar@redhat.com> - 5.1.1-2
|
||||||
|
- New patch to not turn DeprecationWarning in tornado module into Exception
|
||||||
|
- Fixes FTBFS with Python 3.8
|
||||||
|
|
||||||
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-1
|
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-1
|
||||||
- Update to 5.1.1
|
- Update to 5.1.1
|
||||||
- Fix SyntaxWarnings (turned into SyntaxErrors) on Python 3.8
|
- Fix SyntaxWarnings (turned into SyntaxErrors) on Python 3.8
|
||||||
|
Loading…
Reference in New Issue
Block a user