Enable testing for python3 too. (#955)

This gives us back testing parity to before CI broke - and hooray, all tests still pass!
This commit is contained in:
Holger Rapp 2018-04-01 20:50:03 +02:00 committed by GitHub
parent 662e036028
commit 6ee724a1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,9 @@ env:
- VIM_VERSION="7.4" PYTHON_IMAGE=2.7-stretch TAG=vim_74_py2 DOCKER_CACHE_FILE=/home/travis/docker/vim_74_py2.tar.gz
- VIM_VERSION="8.0" PYTHON_IMAGE=2.7-stretch TAG=vim_80_py2 DOCKER_CACHE_FILE=/home/travis/docker/vim_80_py2.tar.gz
- VIM_VERSION="git" PYTHON_IMAGE=2.7-stretch TAG=vim_git_py2 DOCKER_CACHE_FILE=/home/travis/docker/vim_git_py2.tar.gz
- VIM_VERSION="7.4" PYTHON_IMAGE=3.6-stretch TAG=vim_74_py3 DOCKER_CACHE_FILE=/home/travis/docker/vim_74_py3.tar.gz
- VIM_VERSION="8.0" PYTHON_IMAGE=3.6-stretch TAG=vim_80_py3 DOCKER_CACHE_FILE=/home/travis/docker/vim_80_py3.tar.gz
- VIM_VERSION="git" PYTHON_IMAGE=3.6-stretch TAG=vim_git_py3 DOCKER_CACHE_FILE=/home/travis/docker/vim_git_py3.tar.gz
before_install: scripts/load_docker_cache.sh
install:

View File

@ -184,6 +184,9 @@ class VimTestCase(unittest.TestCase, TempFileManager):
if not self.interrupt:
# Go into insert mode and type the keys but leave Vim some time to
# react.
if PYTHON3:
text = 'i' + self.keys
else:
text = u'i' + self.keys.decode("utf-8")
while text:
to_send = None