22 lines
992 B
Plaintext
22 lines
992 B
Plaintext
$OpenBSD: patch-python3_httplib2test_py,v 1.1 2012/12/29 18:28:49 fgsch Exp $
|
|
--- python3/httplib2test.py.orig Sun Dec 23 16:05:17 2012
|
|
+++ python3/httplib2test.py Sun Dec 23 16:05:51 2012
|
|
@@ -30,7 +30,7 @@ import urllib.parse
|
|
# 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):
|
|
@@ -227,7 +227,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, b"")
|