summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-21 08:16:14 +0000
committerGerrit Code Review <review@openstack.org>2014-03-21 08:16:14 +0000
commit644d1489191696642b50cfa582df92ca8499e7d0 (patch)
tree6cec4a217ac2b8531d87c4360a2df1f9a39640df
parent82bfab9d345b731478d4146a0e9f57ee9feb9294 (diff)
parent6ea5e8b013dea94817772543feb283ca951e1996 (diff)
downloadpython-heatclient-644d1489191696642b50cfa582df92ca8499e7d0.tar.gz
Merge "Pass bytes to NamedTemporaryFile.write()"
-rw-r--r--heatclient/tests/test_shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/tests/test_shell.py b/heatclient/tests/test_shell.py
index d72b701..b696627 100644
--- a/heatclient/tests/test_shell.py
+++ b/heatclient/tests/test_shell.py
@@ -1470,7 +1470,7 @@ class ShellTestResources(ShellBase):
self.m.ReplayAll()
with tempfile.NamedTemporaryFile() as data_file:
- data_file.write('{"message":"Content"}')
+ data_file.write(b'{"message":"Content"}')
data_file.flush()
text = self.shell(
'resource-signal {0} {1} -f {2}'.format(