File: ignoreuserwarning.patch

package info (click to toggle)
python-tornado 6.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,176 kB
  • sloc: python: 28,920; javascript: 156; sh: 100; ansic: 72; xml: 49; makefile: 49; sql: 23
file content (24 lines) | stat: -rw-r--r-- 1,081 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
Forwarded: not-needed
---
 tornado/test/runtests.py | 1 +
 1 file changed, 1 insertion(+)

Index: python-tornado/tornado/test/runtests.py
===================================================================
--- python-tornado.orig/tornado/test/runtests.py
+++ python-tornado/tornado/test/runtests.py
@@ -133,6 +133,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)