@@ -105,22 +105,25 @@ that each set of tests has a blacklist of modules that are not tested
105
105
at all. The blacklists also live in the tests directory.
106
106
107
107
To manually run the mypy tests, you need to have Python 3.3 or higher
108
- and ` pip3 install mypy-lang ` . To run the pytype tests, you need
109
- Python 2.7 and install pytype from its repo.
108
+ and ` pip3 install mypy-lang ` . To run 3.6 tests, you'll need to also
109
+ ` pip3 install typed-ast ` needed for ` --fast-parser ` support.
110
+
111
+ To run the pytype tests, you need Python 2.7 and install pytype from its repo.
110
112
111
113
For mypy, if you are in the typeshed repo that is submodule of the
112
114
mypy repo (so ` .. ` refers to the mypy repo), there's a shortcut to run
113
115
the mypy tests that avoids installing mypy:
114
116
``` bash
115
117
$ PYTHONPATH=.. python3 tests/mypy_tests.py
116
118
```
117
- This runs five sets of tests:
119
+ This runs six sets of tests:
118
120
``` bash
119
- running mypy --python-version 3.5 --strict-optional # with 342 files
120
- running mypy --python-version 3.4 --strict-optional # with 342 files
121
- running mypy --python-version 3.3 --strict-optional # with 327 files
122
- running mypy --python-version 3.2 --strict-optional # with 326 files
123
- running mypy --python-version 2.7 --strict-optional # with 380 files
121
+ running mypy --python-version 3.6 --strict-optional --fast-parser # with 353 files
122
+ running mypy --python-version 3.5 --strict-optional # with 343 files
123
+ running mypy --python-version 3.4 --strict-optional # with 343 files
124
+ running mypy --python-version 3.3 --strict-optional # with 328 files
125
+ running mypy --python-version 3.2 --strict-optional # with 327 files
126
+ running mypy --python-version 2.7 --strict-optional # with 382 files
124
127
```
125
128
You can limit it to a single test by passing ` -p2 ` or ` -p3.5 ` e.g.
126
129
``` bash
0 commit comments