python-tornado/fix-erroneous-deprecation-warnings.patch
Charalampos Stratakis 96baf859ca Update to 5.0.2
Add python2-futures as BuildRequires.

Fix deprecation warnings when using unittest2.

Add the license file within the resulting rpms.
2018-05-18 15:48:24 +02:00

14 lines
663 B
Diff

diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
index d5bd769..e4f938d 100644
--- a/tornado/test/runtests.py
+++ b/tornado/test/runtests.py
@@ -137,6 +137,8 @@ def main():
# 2.7 and 3.2
warnings.filterwarnings("ignore", category=DeprecationWarning,
message="Please use assert.* instead")
+ warnings.filterwarnings("ignore", category=PendingDeprecationWarning,
+ message="Please use assert.* instead")
# Twisted 15.0.0 triggers some warnings on py3 with -bb.
warnings.filterwarnings("ignore", category=BytesWarning,
module=r"twisted\..*")