File: ignoreuserwarning.patch

package info (click to toggle)
python-tornado 6.2.0-3%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,656 kB
  • sloc: python: 27,837; javascript: 156; sh: 99; ansic: 58; xml: 49; makefile: 48; sql: 23
file content (21 lines) | stat: -rw-r--r-- 932 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
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)