From 9906bc9a6b9c715c310a8ef3ee8fd3111326272d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 11 Feb 2016 15:25:07 +0100 Subject: [PATCH] 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 --- tox.ini | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tox.ini b/tox.ini index 2d32d7a2ab..8fdb826fbe 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}