summaryrefslogtreecommitdiff
path: root/keystoneclient
diff options
context:
space:
mode:
authorMorgan Fainberg <morgan.fainberg@gmail.com>2018-06-08 09:12:07 -0700
committerMorgan Fainberg <morgan.fainberg@gmail.com>2018-06-10 18:36:50 +0000
commitf2d3fec9b254f9c47e97ddf48e3c5f7614b87f1b (patch)
treebfebf4b409035417dd8ce9f3213fe496a9410925 /keystoneclient
parent20a2f2ffdc107d5f724da8bbbf986fa401a0361e (diff)
downloadpython-keystoneclient-f2d3fec9b254f9c47e97ddf48e3c5f7614b87f1b.tar.gz
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
Diffstat (limited to 'keystoneclient')
-rw-r--r--keystoneclient/tests/unit/test_session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/tests/unit/test_session.py b/keystoneclient/tests/unit/test_session.py
index 27d224d..e0d9b28 100644
--- a/keystoneclient/tests/unit/test_session.py
+++ b/keystoneclient/tests/unit/test_session.py
@@ -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)