[PATCH 3 of 5 RFC] mercurial.http: skip check-code as it is a third-party library

Augie Fackler durin42 at gmail.com
Thu May 5 13:35:41 CDT 2011


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1304612122 18000
# Node ID ff30e8f54664ee31134cc24dba154d6bf6b8f741
# Parent  24d216878da01cc9c7a856391d35725bf0dec5ba
mercurial.http: skip check-code as it is a third-party library

diff --git a/mercurial/http/__init__.py b/mercurial/http/__init__.py
--- a/mercurial/http/__init__.py
+++ b/mercurial/http/__init__.py
@@ -647,3 +647,4 @@
 
 class HTTPProxyConnectFailedException(httplib.HTTPException):
     """Connecting to the HTTP proxy failed."""
+# no-check-code
diff --git a/mercurial/http/socketutil.py b/mercurial/http/socketutil.py
--- a/mercurial/http/socketutil.py
+++ b/mercurial/http/socketutil.py
@@ -131,3 +131,4 @@
 
 class CertificateValidationUnsupported(Exception):
     """Exception raised when cert validation is requested but unavailable."""
+# no-check-code
diff --git a/mercurial/http/tests/__init__.py b/mercurial/http/tests/__init__.py
--- a/mercurial/http/tests/__init__.py
+++ b/mercurial/http/tests/__init__.py
@@ -0,0 +1,1 @@
+# no-check-code
diff --git a/mercurial/http/tests/simple_http_test.py b/mercurial/http/tests/simple_http_test.py
--- a/mercurial/http/tests/simple_http_test.py
+++ b/mercurial/http/tests/simple_http_test.py
@@ -363,3 +363,4 @@
 
         self.assertEqual(('1.2.3.4', 80), con.sock.sa)
         self.assertEqual(expected_req, con.sock.sent)
+# no-check-code
diff --git a/mercurial/http/tests/test_bogus_responses.py b/mercurial/http/tests/test_bogus_responses.py
--- a/mercurial/http/tests/test_bogus_responses.py
+++ b/mercurial/http/tests/test_bogus_responses.py
@@ -65,3 +65,4 @@
 
     def testOnlyCarriageReturn(self):
         self.bogusEOL('\r')
+# no-check-code
diff --git a/mercurial/http/tests/test_chunked_transfer.py b/mercurial/http/tests/test_chunked_transfer.py
--- a/mercurial/http/tests/test_chunked_transfer.py
+++ b/mercurial/http/tests/test_chunked_transfer.py
@@ -134,3 +134,4 @@
         con.request('GET', '/')
         self.assertStringEqual('hi there\nthere\nthere\nthere\nthere\n',
                                con.getresponse().read())
+# no-check-code
diff --git a/mercurial/http/tests/test_proxy_support.py b/mercurial/http/tests/test_proxy_support.py
--- a/mercurial/http/tests/test_proxy_support.py
+++ b/mercurial/http/tests/test_proxy_support.py
@@ -129,3 +129,4 @@
         self.assertRaises(http.HTTPProxyConnectFailedException, con._connect)
         self.assertRaises(http.HTTPProxyConnectFailedException,
                           con.request, 'GET', '/')
+# no-check-code
diff --git a/mercurial/http/tests/util.py b/mercurial/http/tests/util.py
--- a/mercurial/http/tests/util.py
+++ b/mercurial/http/tests/util.py
@@ -157,3 +157,4 @@
                 add_nl(l.splitlines()), add_nl(r.splitlines()),
                 fromfile='expected', tofile='got'))
             raise
+# no-check-code


More information about the Mercurial-devel mailing list