[Python-modules-commits] r23381 - in packages/python-tornado/trunk/debian (3 files)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Wed Jan 23 22:33:05 UTC 2013


    Date: Wednesday, January 23, 2013 @ 22:33:03
  Author: jtaylor-guest
Revision: 23381

disable warning in test to allow testing with the package already installed

Added:
  packages/python-tornado/trunk/debian/patches/ignoreuserwarning.patch
Modified:
  packages/python-tornado/trunk/debian/changelog
  packages/python-tornado/trunk/debian/patches/series

Modified: packages/python-tornado/trunk/debian/changelog
===================================================================
--- packages/python-tornado/trunk/debian/changelog	2013-01-23 22:32:54 UTC (rev 23380)
+++ packages/python-tornado/trunk/debian/changelog	2013-01-23 22:33:03 UTC (rev 23381)
@@ -3,6 +3,8 @@
   * New upstream release (Closes: #698566)
   * run python2 test during build (Closes: #663928)
   * add autopkgtests
+  * ignoreuserwarning.patch:
+    disable warning in test to allow testing with the package already installed
 
  -- Julian Taylor <jtaylor.debian at googlemail.com>  Wed, 23 Jan 2013 20:26:46 +0100
 

Added: packages/python-tornado/trunk/debian/patches/ignoreuserwarning.patch
===================================================================
--- packages/python-tornado/trunk/debian/patches/ignoreuserwarning.patch	                        (rev 0)
+++ packages/python-tornado/trunk/debian/patches/ignoreuserwarning.patch	2013-01-23 22:33:03 UTC (rev 23381)
@@ -0,0 +1,13 @@
+Description: 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.
+--- a/tornado/test/runtests.py
++++ b/tornado/test/runtests.py
+@@ -47,6 +47,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)

Modified: packages/python-tornado/trunk/debian/patches/series
===================================================================
--- packages/python-tornado/trunk/debian/patches/series	2013-01-23 22:32:54 UTC (rev 23380)
+++ packages/python-tornado/trunk/debian/patches/series	2013-01-23 22:33:03 UTC (rev 23381)
@@ -1,2 +1,3 @@
 ignore-ca-certificates.patch
 certs-path.patch
+ignoreuserwarning.patch




More information about the Python-modules-commits mailing list