Fix and re-enable pytype_test (#4975)

For now, the test requires changes that have been merged into the pytype master branch but not yet released. I'll update requirements-tests-py3.txt again once I've cut a new release (hopefully later this week).

* Fix pytype_test.
* Re-enable pytype_test.
* Remove continue-on-error from pytype_test.
* Temporarily install pytype from its master branch, as the code to
  support the new directory structure hasn't been released yet.
* Set TYPESHED_HOME before using pytype.pytd.Typeshed().
This commit is contained in:
Rebecca Chen
2021-01-27 14:00:27 -08:00
committed by GitHub
parent 16ae4c6120
commit ce24720a1a
3 changed files with 30 additions and 51 deletions

View File

@@ -53,8 +53,6 @@ jobs:
python-version: 3.6
- run: pip install -r requirements-tests-py3.txt
- run: ./tests/pytype_test.py
# TODO: re-enable when pytype supports new directory structure.
continue-on-error: true
mypy:
name: Run mypy against the stubs