py34: Add support for python34 jobs

This commits adjusts the usage of gettext.install to allow
py34 to run succesfully. It also enables specific files to
test which all pass python34.

Change-Id: Iaa7b44e48ed6cc24bf7ae2a989e3d3586e004cb1
Depends-On: I60bbe8786cad72a8ff89cf7bc33853bf259b56cd
Signed-off-by: Kyle Mestery <mestery@mestery.com>
This commit is contained in:
Kyle Mestery
2015-07-28 16:32:15 +00:00
parent d0c63035b3
commit cb07ce6d20
2 changed files with 14 additions and 2 deletions

View File

@@ -14,6 +14,10 @@
# under the License.
import gettext
import six
gettext.install('networking_odl', unicode=1)
if six.PY2:
gettext.install('networking_odl', unicode=1)
else:
gettext.install('networking_odl')

10
tox.ini
View File

@@ -1,5 +1,5 @@
[tox]
envlist = py27,pep8
envlist = py27,py34,pep8
minversion = 1.6
skipsdist = True
@@ -28,6 +28,14 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:py34]
commands = python -m testtools.run \
networking_odl.tests.unit.l3.test_l3_odl \
networking_odl.tests.unit.fwaas.test_fwaas_odl \
networking_odl.tests.unit.common.test_callback \
networking_odl.tests.unit.lbaas.test_lbaas_odl_v2 \
networking_odl.tests.unit.lbaas.test_lbaas_odl_v1
[hacking]
import_exceptions = neutron.i18n
local-check-factory = neutron.hacking.checks.factory