Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e80723

Browse files
committed
chore: remove references to python2 in test env
1 parent82deb7d commit6e80723

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 forpython 2/3, and the pep8 tests:
132+
# run the unit tests forall 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
whilegetopts :knp:a: opt"$@";do
3535
case$optin
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_VERin
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_VERin
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)

[8]ページ先頭

©2009-2025 Movatter.jp