Py3: Use BytesIO when we want bytes
Change-Id: I2356351da29892c40d14068766df161649648447
This commit is contained in:

committed by
Tim Burke

parent
9017db4519
commit
f765f4b10a
@@ -16,7 +16,7 @@
|
||||
import unittest
|
||||
import mock
|
||||
|
||||
from cStringIO import StringIO
|
||||
from six import BytesIO
|
||||
from hashlib import md5
|
||||
|
||||
from swift.common.swob import Request, HTTPAccepted
|
||||
@@ -76,7 +76,7 @@ class TestS3ApiAcl(S3ApiTestCase):
|
||||
|
||||
req = Request.blank('/bucket?acl',
|
||||
environ={'REQUEST_METHOD': 'PUT',
|
||||
'wsgi.input': StringIO(xml)},
|
||||
'wsgi.input': BytesIO(xml)},
|
||||
headers={'Authorization': 'AWS test:tester:hmac',
|
||||
'Date': self.get_date_header(),
|
||||
'Transfer-Encoding': 'chunked'})
|
||||
|
Reference in New Issue
Block a user