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:
Morgan Fainberg 2018-06-08 09:12:07 -07:00
parent 20a2f2ffdc
commit f2d3fec9b2
1 changed files with 1 additions and 1 deletions

View File

@ -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)