Travis: Fix python2 detection

This commit is contained in:
Till Maas 2020-05-05 14:59:12 +02:00
parent 0afed7ed88
commit b334ce4d74

View file

@ -39,7 +39,7 @@
#
# - RUN_FLAKE8_DISABLED
# - RUN_FLAKE8_EXTRA_ARGS
if [[ "$(python2 -c "import sys; print(sys.version_info.major)")" == "2" ]]
if [[ "$(python -c "import sys; print(sys.version_info.major)")" == "2" ]]
then
PYTHON2_EXCLUDES="tests/ensure_provider_tests.py"
FLAKE8_DEFAULT_EXCLUDES=".svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg"