Fix python3 test compat
Python3 test requirement means that the unicode type does not exist instead we use six.unicode to get `unicode` in py27 and `str` in python3. Change-Id: I2cbf2e63a9d93c232b6928acf002a45b7fbcec8e
This commit is contained in:
parent
20a2f2ffdc
commit
f2d3fec9b2
|
@ -266,7 +266,7 @@ class SessionTests(utils.TestCase):
|
|||
# elements to make sure that all joins are appropriately
|
||||
# handled (any join of unicode and byte strings should
|
||||
# raise a UnicodeDecodeError)
|
||||
session.post(unicode(self.TEST_URL), data=data)
|
||||
session.post(six.text_type(self.TEST_URL), data=data)
|
||||
|
||||
self.assertNotIn('my data', self.logger.output)
|
||||
|
||||
|
|
Loading…
Reference in New Issue