summaryrefslogtreecommitdiff
path: root/heatclient
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-24 17:21:48 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-24 17:37:50 +0100
commit84c6d3dbcac86c300e7e6de921af0420a6b72a09 (patch)
treef0e72125e1c92878f387a48344cfe249fae1f434 /heatclient
parent508b6bb4ef3c08319b8bfbea02c73b8d0fbc77c7 (diff)
downloadpython-heatclient-84c6d3dbcac86c300e7e6de921af0420a6b72a09.tar.gz
Python3: fix a bytes/str issue
test_curl_log_i18n_headers, introduced in 0b730e82b4bf63be1c3acd924a77a684a31db709, does not work with Python 3, because Python 3, the headers must also be bytes, Change-Id: I7baf737b3d9e2763a43eb593ca8ea733274a1107
Diffstat (limited to 'heatclient')
-rw-r--r--heatclient/tests/test_common_http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/tests/test_common_http.py b/heatclient/tests/test_common_http.py
index fc12d71..301b665 100644
--- a/heatclient/tests/test_common_http.py
+++ b/heatclient/tests/test_common_http.py
@@ -637,7 +637,7 @@ class HttpClientTest(testtools.TestCase):
def test_curl_log_i18n_headers(self):
self.m.StubOutWithMock(logging.Logger, 'debug')
- kwargs = {'headers': {'Key': 'foo\xe3\x8a\x8e'}}
+ kwargs = {'headers': {'Key': b'foo\xe3\x8a\x8e'}}
mock_logging_debug = logging.Logger.debug(
u"curl -i -X GET -H 'Key: foo㊎' http://somewhere"