summaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorMarcin Piwowarczyk <m.piwowarczy@samsung.com>2018-06-06 16:06:05 -0400
committerMarcin Piwowarczyk <m.piwowarczy@samsung.com>2018-09-18 17:19:20 +0000
commitad848298821974a5b7acf7120778cf3e8b1fe023 (patch)
treeacd0ed8215e5de55681bdae8f10ff954c79d18ac /run_tests.py
parent7e4e25f12feba32202e082d2f8b84a23cb9ae3af (diff)
downloadtrove-ad848298821974a5b7acf7120778cf3e8b1fe023.tar.gz
fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I9ee34642c700d1e6ba9c2f3891b7fa1f7f7e1e1d Depends-On: I8989fd4798e80eae27408017e1543819a68b4ab1 Signed-off-by: Doug Hellmann <doug@doughellmann.com> Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com> Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'run_tests.py')
-rw-r--r--run_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_tests.py b/run_tests.py
index eb00e032..95c2f3b8 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -57,10 +57,10 @@ def add_support_for_localization():
if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')):
sys.path.insert(0, possible_topdir)
- if six.PY2:
- gettext.install('nova', unicode=1)
- else:
+ if six.PY3:
gettext.install('nova')
+ else:
+ gettext.install('nova', unicode=True)
def initialize_trove(config_file):