openbsd-ports/www/py-httplib2/patches/patch-python2_httplib2test_py
fgsch 11102bc226 Update to httplib2 0.7.7.
Remove maintainer as per his request.
2012-12-29 18:28:49 +00:00

22 lines
1020 B
Plaintext

$OpenBSD: patch-python2_httplib2test_py,v 1.1 2012/12/29 18:28:49 fgsch Exp $
--- python2/httplib2test.py.orig Fri Nov 16 13:20:22 2012
+++ python2/httplib2test.py Sun Dec 23 16:04:06 2012
@@ -40,7 +40,7 @@ if not hasattr(unittest.TestCase, 'assertTrue'):
# The test resources base uri
base = 'http://bitworking.org/projects/httplib2/test/'
#base = 'http://localhost/projects/httplib2/test/'
-cacheDirName = ".cache"
+cacheDirName = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".cache")
class CredentialsTest(unittest.TestCase):
@@ -247,7 +247,7 @@ class HttpTest(unittest.TestCase):
# since httplib blocks response.read() for HEAD requests.
# Oddly enough this doesn't appear as a problem when doing HEAD requests
# against Apache servers.
- uri = "http://www.google.com/"
+ uri = "http://www.google.co.uk/"
(response, content) = self.http.request(uri, "HEAD")
self.assertEqual(response.status, 200)
self.assertEqual(content, "")