From 6533655c84ddff198f30edaaecd0a310052d6510 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 5 Nov 2015 17:20:41 +0100 Subject: [PATCH] Port test_tintri to Python 3 * Set configuration.nfs_oversub_ratio, otherwise tests fail with TypeError on comparison between mock.Mock and int. * tox.ini: add test_tintri to Python 3.4. Change-Id: Ie2b5215795481bdfb11116876d83ef777a10c224 Partial-Implements: blueprint cinder-python3 --- cinder/tests/unit/test_tintri.py | 1 + tests-py3.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/cinder/tests/unit/test_tintri.py b/cinder/tests/unit/test_tintri.py index d7cf98765..e9781f53b 100644 --- a/cinder/tests/unit/test_tintri.py +++ b/cinder/tests/unit/test_tintri.py @@ -57,6 +57,7 @@ class TintriDriverTestCase(test.TestCase): configuration.nfs_mount_options = None configuration.nas_mount_options = None configuration.nfs_used_ratio = 0.95 + configuration.nfs_oversub_ratio = 1.0 return configuration def fake_stubs(self): diff --git a/tests-py3.txt b/tests-py3.txt index b4de72841..a643b99b9 100644 --- a/tests-py3.txt +++ b/tests-py3.txt @@ -102,6 +102,7 @@ cinder.tests.unit.test_solidfire cinder.tests.unit.test_ssh_utils cinder.tests.unit.test_test cinder.tests.unit.test_test_utils +cinder.tests.unit.test_tintri cinder.tests.unit.test_v6000_common cinder.tests.unit.test_v6000_fcp cinder.tests.unit.test_v6000_iscsi -- 2.45.2