diff options
| author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-03-27 20:57:09 +0000 |
|---|---|---|
| committer | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-04-02 21:38:20 -0400 |
| commit | 078819cf9ea121bbffc71ad0af6b3bea1d897b0b (patch) | |
| tree | b7785a69b9d8c0ca2e55a2073bd5b2d0f8118b6f /tests/test_http.py | |
| parent | 58ee451286b23a8043605085c3910c81592ed032 (diff) | |
| download | python-glanceclient-078819cf9ea121bbffc71ad0af6b3bea1d897b0b.tar.gz | |
Fix for invalid literal ValueError parsing ipv6 url(s)
Switch to using network_utils for splitting the URL. The code
in oslo-incubator supports ipv6 urls
Change-Id: I76be6173b97eb000319d30b4e9232a5a7c4a5aba
Closes-Bug: #1298137
Diffstat (limited to 'tests/test_http.py')
| -rw-r--r-- | tests/test_http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_http.py b/tests/test_http.py index e439ede..e68dc09 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -304,9 +304,9 @@ class TestClient(testtools.TestCase): endpoint = 'http://example.com:9292' test_client = http.HTTPClient(endpoint, token=u'adc123') actual = test_client.parse_endpoint(endpoint) - expected = parse.ParseResult(scheme='http', + expected = parse.SplitResult(scheme='http', netloc='example.com:9292', path='', - params='', query='', fragment='') + query='', fragment='') self.assertEqual(expected, actual) def test_get_connection_class(self): |
