python-tornado/Do-not-turn-DeprecationWarning-into-Exception.patch

25 lines
939 B
Diff
Raw Normal View History

2019-06-03 10:17:32 +00:00
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
---
2019-06-03 10:17:32 +00:00
tornado/test/runtests.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
2019-06-03 10:17:32 +00:00
index dab76a2..117fd1c 100644
--- a/tornado/test/runtests.py
+++ b/tornado/test/runtests.py
2019-06-03 10:17:32 +00:00
@@ -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)
2019-06-03 10:17:32 +00:00
- warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\..*")
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
2019-06-03 10:17:32 +00:00
warnings.filterwarnings(
"error", category=PendingDeprecationWarning, module=r"tornado\..*"
--
2.21.0