[Python-modules-commits] r28198 - in packages/python-tornado/trunk/debian/patches (2 files)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Sat Mar 15 11:35:05 UTC 2014


    Date: Saturday, March 15, 2014 @ 11:35:05
  Author: jtaylor-guest
Revision: 28198

use a more likely invalid domain for tests of that

should not matter for proper isolated build environments but may cause
unnecessary issues for user package builds.

Added:
  packages/python-tornado/trunk/debian/patches/domain-test.patch
Modified:
  packages/python-tornado/trunk/debian/patches/series

Added: packages/python-tornado/trunk/debian/patches/domain-test.patch
===================================================================
--- packages/python-tornado/trunk/debian/patches/domain-test.patch	                        (rev 0)
+++ packages/python-tornado/trunk/debian/patches/domain-test.patch	2014-03-15 11:35:05 UTC (rev 28198)
@@ -0,0 +1,22 @@
+Description: use a domain that is more likely invalid
+ avoids test failures in unisolated builds
+--- a/tornado/test/netutil_test.py
++++ b/tornado/test/netutil_test.py
+@@ -60,7 +60,7 @@ class _ResolverTestMixin(object):
+             return True  # Halt propagation.
+ 
+         with ExceptionStackContext(handler):
+-            self.resolver.resolve('an invalid domain', 80, callback=self.stop)
++            self.resolver.resolve('anasdas23dadasdasdasdi2n1validsdasdbwefrwfejnefsegfsdomain', 80, callback=self.stop)
+ 
+         result = self.wait()
+         self.assertIsInstance(result, Exception)
+@@ -69,7 +69,7 @@ class _ResolverTestMixin(object):
+     def test_future_interface_bad_host(self):
+         self.skipOnCares()
+         with self.assertRaises(Exception):
+-            yield self.resolver.resolve('an invalid domain', 80,
++            yield self.resolver.resolve('ana8sdasdadasdasdas1d12invalidsdasdbwefrwfejnefsegfsdomain', 80,
+                                         socket.AF_UNSPEC)
+ 
+ 

Modified: packages/python-tornado/trunk/debian/patches/series
===================================================================
--- packages/python-tornado/trunk/debian/patches/series	2014-03-15 11:35:02 UTC (rev 28197)
+++ packages/python-tornado/trunk/debian/patches/series	2014-03-15 11:35:05 UTC (rev 28198)
@@ -1,3 +1,4 @@
 ignore-ca-certificates.patch
 certs-path.patch
 ignoreuserwarning.patch
+domain-test.patch




More information about the Python-modules-commits mailing list