Merge "Pass bytes to NamedTemporaryFile.write()"
This commit is contained in:
@@ -1470,7 +1470,7 @@ class ShellTestResources(ShellBase):
|
|||||||
self.m.ReplayAll()
|
self.m.ReplayAll()
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile() as data_file:
|
with tempfile.NamedTemporaryFile() as data_file:
|
||||||
data_file.write('{"message":"Content"}')
|
data_file.write(b'{"message":"Content"}')
|
||||||
data_file.flush()
|
data_file.flush()
|
||||||
text = self.shell(
|
text = self.shell(
|
||||||
'resource-signal {0} {1} -f {2}'.format(
|
'resource-signal {0} {1} -f {2}'.format(
|
||||||
|
Reference in New Issue
Block a user