diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-24 17:21:48 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-24 17:37:50 +0100 |
commit | 84c6d3dbcac86c300e7e6de921af0420a6b72a09 (patch) | |
tree | f0e72125e1c92878f387a48344cfe249fae1f434 /heatclient | |
parent | 508b6bb4ef3c08319b8bfbea02c73b8d0fbc77c7 (diff) | |
download | python-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.py | 2 |
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" |