diff options
| author | Frederic Lepied <frederic.lepied@enovance.com> | 2014-04-26 23:34:58 +0200 |
|---|---|---|
| committer | Frederic Lepied <frederic.lepied@enovance.com> | 2014-05-20 16:42:10 +0200 |
| commit | 628c541a693ce39a524191250f93c967aef0dba5 (patch) | |
| tree | b14db79d7e8062e4ca1c62e0a11abd3bc985fe27 /tests/v2 | |
| parent | f2e0610628bf646003c40668adfa5a6c4318cbc3 (diff) | |
| download | python-glanceclient-628c541a693ce39a524191250f93c967aef0dba5.tar.gz | |
Finalize Python3 support
Set the environment variable PYTHONHASHSEED to 0 to have
predictive tests under Python 3.
Change-Id: Ia15a9383e0f20bd0e4572e9f9b9772f1704dff86
Diffstat (limited to 'tests/v2')
| -rw-r--r-- | tests/v2/test_images.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/v2/test_images.py b/tests/v2/test_images.py index 754a09b..b76267c 100644 --- a/tests/v2/test_images.py +++ b/tests/v2/test_images.py @@ -16,6 +16,7 @@ import errno import testtools +import six import warlock from glanceclient.v2 import images @@ -403,8 +404,10 @@ class TestController(testtools.TestCase): # /v2/images?owner=ni%C3%B1o&limit=20 # We just want to make sure filters are correctly encoded. pass - - self.assertEqual("ni\xc3\xb1o", filters["owner"]) + if six.PY2: + self.assertEqual("ni\xc3\xb1o", filters["owner"]) + else: + self.assertEqual("ni\xf1o", filters["owner"]) def test_list_images_for_tag_single_image(self): img_id = '3a4560a1-e585-443e-9b39-553b46ec92d1' |
