[Python-modules-commits] [python-tornado] 02/17: Disable domain tests to prevent internet access during build

Ondrej Novy onovy at debian.org
Mon Jan 15 13:07:42 UTC 2018


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

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

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

    Disable domain tests to prevent internet access during build
    
    Patch-Name: disable-domain-tests.patch
---
 tornado/test/netutil_test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py
index 9564290..611d6ff 100644
--- a/tornado/test/netutil_test.py
+++ b/tornado/test/netutil_test.py
@@ -51,6 +51,7 @@ class _ResolverTestMixin(object):
 # It is impossible to quickly and consistently generate an error in name
 # resolution, so test this case separately, using mocks as needed.
 class _ResolverErrorTestMixin(object):
+    @unittest.skip("Prevent internet access during build")
     def test_bad_host(self):
         def handler(exc_typ, exc_val, exc_tb):
             self.stop(exc_val)
@@ -63,6 +64,7 @@ class _ResolverErrorTestMixin(object):
         self.assertIsInstance(result, Exception)
 
     @gen_test
+    @unittest.skip("Prevent internet access during build")
     def test_future_interface_bad_host(self):
         with self.assertRaises(IOError):
             yield self.resolver.resolve('an invalid domain', 80,

-- 
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