From 9addc8e6abf1e017d00c3912f5ad6e5e5e668277 Mon Sep 17 00:00:00 2001 From: Vincent Barbaresi Date: Sat, 3 Oct 2020 10:47:15 +0200 Subject: [PATCH] Travis CI: install typing on python2 to restore some skipped tests This used to be installed but was removed in https://github.com/python/mypy/commit/def2c63990dd#diff-354f30a63fb0907d4ad57269548329e3L15 in `mypy/util.py:try_find_python2_interpreter()` we try to find a valid python2 interpreter with typing installed. If we don't find it, tests are skipped. However on python/typeshed, the CI installs typing on python2, and thus doesn't skip the tests This caused the broken tests issue #9473 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 9f9ca2640667..50d99041cdb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,6 +85,7 @@ install: - pip install -U pip setuptools - pip install -U 'virtualenv<20' - pip install -U tox==3.9.0 +- python2 -m pip install --user -U typing - tox --notest # This is a big hack and only works because the layout of our directories