[Python-modules-commits] [python-tornado] 03/10: ignore userwarning in tests

Ondřej Nový onovy at moszumanska.debian.org
Mon Aug 1 09:29:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

onovy pushed a commit to branch master
in repository python-tornado.

commit a0ce13e85369c0509d17fb81a3dc21781f81091f
Author: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
Date:   Thu Oct 8 13:13:31 2015 -0700

    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(+)

diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
index f4dd46d..a0c8684 100644
--- a/tornado/test/runtests.py
+++ b/tornado/test/runtests.py
@@ -101,6 +101,7 @@ def main():
     # 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tornado.git



More information about the Python-modules-commits mailing list