README.md suggests running tests with PYTHONPATH instead of MYPYPATH (#2813)

* The 'Running the tests' section suggests setting PYTHONPATH instead of MYPYPATH when testing typeshed as a submodule of mypy

* actually PYTHONPATH was the right var to set ... but it was set slightly wrong after a directory reshuffle
This commit is contained in:
Sean McLemon
2019-02-25 18:34:08 +01:00
committed by Jelle Zijlstra
parent af9082c302
commit 0efb2469d4

View File

@@ -135,10 +135,10 @@ For mypy, if you are in the typeshed repo that is submodule of the
mypy repo (so `..` refers to the mypy repo), there's a shortcut to run
the mypy tests that avoids installing mypy:
```bash
$ PYTHONPATH=.. python3 tests/mypy_test.py
$ PYTHONPATH=../.. python3 tests/mypy_test.py
```
You can mypy tests to a single version by passing `-p2` or `-p3.5` e.g.
```bash
$ PYTHONPATH=.. python3 tests/mypy_test.py -p3.5
$ PYTHONPATH=../.. python3 tests/mypy_test.py -p3.5
running mypy --python-version 3.5 --strict-optional # with 342 files
```