modify pytype_test to run from within pytype too, and support python3 (#1817)

This commit is contained in:
Martin DeMello
2018-01-22 12:18:58 -08:00
committed by Matthias Kramm
parent c2fa0a153a
commit 754789b031
4 changed files with 117 additions and 31 deletions

View File

@@ -127,7 +127,7 @@ invoking:
(Note that flake8 only works with Python 3.6 or higher.)
To run the pytype tests, you need a separate virtual environment with
Python 2.7. Run:
Python 2.7, and a Python 3.6 interpreter somewhere you can point to. Run:
```
$ virtualenv --python=python2.7 .venv2
$ source .venv2/bin/activate
@@ -136,7 +136,7 @@ $ source .venv2/bin/activate
This will install pytype from its GitHub repo. You can then run pytype
tests by running:
```
(.venv2)$ python tests/pytype_test.py
(.venv2)$ python tests/pytype_test.py --python36-exe=/path/to/python3.6
```
For mypy, if you are in the typeshed repo that is submodule of the