summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2016-02-11 15:25:07 +0100
committerVictor Stinner <vstinner@redhat.com>2016-03-25 18:45:38 +0100
commit9906bc9a6b9c715c310a8ef3ee8fd3111326272d (patch)
tree224fb75a29855204f1959ac960812335af6e1998 /tox.ini
parentd6d212fe454ff82ec7a8e76715a7321d0d567d39 (diff)
downloadtrove-9906bc9a6b9c715c310a8ef3ee8fd3111326272d.tar.gz
Add a minimal py34 test environment
The first step to port Trove to Python 3 is to have a working "tox -e py34" test to avoid regressions. This change creates such minimum test environment just by running 3 very simple unit tests which have no dependency. With the change, it becomes possible to make the py34 gate voting to avoid regressions. Partially implements: blueprint trove-python3 Change-Id: Ie08b45db885639541804c3bcc486e4e451833347
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 2d32d7a2..8fdb826f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,6 +26,15 @@ commands =
bash -c "find trove -type f -regex '.*\.pot?' -print0 | \
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
+[testenv:py34]
+# Use a whitelist of tests known to pass on Python 3, until
+# all unit tests will pass on Python 3.
+commands =
+ python -bb -m testtools.run \
+ trove/tests/unittests/common/test_context.py \
+ trove/tests/unittests/common/test_exception.py \
+ trove/tests/unittests/common/test_wsgi.py
+
[testenv:debug]
commands = oslo_debug_helper {posargs}