1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: SVN-Git Migration <python-modules-team@lists.alioth.debian.org>
Date: Thu, 8 Oct 2015 13:13:31 -0700
Subject: ignore userwarning in tests
Required to run tests from source with the package already installed.
Else one gets check_version_conflict warning from pkg_resources.
Patch-Name: ignoreuserwarning.patch
---
tornado/test/runtests.py | 1 +
1 file changed, 1 insertion(+)
--- python-tornado.orig/tornado/test/runtests.py
+++ python-tornado/tornado/test/runtests.py
@@ -120,6 +120,7 @@
# setuptools sometimes gives ImportWarnings about things that are on
# sys.path even if they're not being used.
warnings.filterwarnings("ignore", category=ImportWarning)
+ warnings.filterwarnings("ignore", category=UserWarning)
# Tornado generally shouldn't use anything deprecated, but some of
# our dependencies do (last match wins).
warnings.filterwarnings("ignore", category=DeprecationWarning)
|