From d98928caa99cbfac1b8710ac0761925a8146422e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 22 Aug 2016 10:41:59 +0200 Subject: [PATCH] py3: tox.ini: use substituation to py35 commands Use tox substitution to avoid duplicating testenv:py34 commands in testenv:py35, to not have to maintain the whitelist of Python 3 tests in two different places. Write also the list of tests in a newline to be able to more easily add new unit tests. Change-Id: I6e7f238f1c5d3fc9b6560918dcbb93e9dd8ec084 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 4a69f2b69e..a698de78c6 100644 --- a/tox.ini +++ b/tox.ini @@ -28,11 +28,11 @@ setenv = VIRTUAL_ENV={envdir} [testenv:py34] commands = - nosetests test/unit/common/test_exceptions.py + nosetests \ + test/unit/common/test_exceptions.py [testenv:py35] -commands = - nosetests test/unit/common/test_exceptions.py +commands = {[testenv:py34]commands} [testenv:pep8] basepython = python2.7