Skip to content

Commit 6e80723

Browse files
committed
chore: remove references to python2 in test env
1 parent 82deb7d commit 6e80723

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ You need to install ``tox`` to run unit tests and documentation builds locally:
129129

130130
.. code-block:: bash
131131
132-
# run the unit tests for python 2/3, and the pep8 tests:
132+
# run the unit tests for all supported python3 versions, and the pep8 tests:
133133
tox
134134
135135
# run tests in one environment only:
136-
tox -epy35
136+
tox -epy36
137137
138138
# build the documentation, the result will be generated in
139139
# build/sphinx/html/

tools/build_test_env.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ try() { "$@" || fatal "'$@' failed"; }
2727

2828
REUSE_CONTAINER=
2929
NOVENV=
30-
PY_VER=3
3130
API_VER=4
3231
GITLAB_IMAGE="gitlab/gitlab-ce"
3332
GITLAB_TAG="latest"
33+
VENV_CMD="python3 -m venv"
3434
while getopts :knp:a: opt "$@"; do
3535
case $opt in
3636
k) REUSE_CONTAINER=1;;
3737
n) NOVENV=1;;
38-
p) PY_VER=$OPTARG;;
3938
a) API_VER=$OPTARG;;
4039
t) GITLAB_TAG=$OPTARG;;
4140
:) fatal "Option -${OPTARG} requires a value";;
@@ -44,12 +43,6 @@ while getopts :knp:a: opt "$@"; do
4443
esac
4544
done
4645

47-
case $PY_VER in
48-
2) VENV_CMD=virtualenv;;
49-
3) VENV_CMD="python3 -m venv";;
50-
*) fatal "Wrong python version (2 or 3)";;
51-
esac
52-
5346
case $API_VER in
5447
4) ;;
5548
*) fatal "Wrong API version (4 only)";;

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ commands =
4444
coverage html --omit=*tests*
4545

4646
[testenv:cli_func_v4]
47-
commands = {toxinidir}/tools/functional_tests.sh -a 4 -p 2
47+
commands = {toxinidir}/tools/functional_tests.sh -a 4
4848

4949
[testenv:py_func_v4]
50-
commands = {toxinidir}/tools/py_functional_tests.sh -a 4 -p 2
50+
commands = {toxinidir}/tools/py_functional_tests.sh -a 4

0 commit comments

Comments
 (0)