mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
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:
committed by
Jelle Zijlstra
parent
af9082c302
commit
0efb2469d4
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user