From 0efb2469d4505e3007568accd7cfe9f203711b1c Mon Sep 17 00:00:00 2001 From: Sean McLemon Date: Mon, 25 Feb 2019 18:34:08 +0100 Subject: [PATCH] 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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 755176610..9423259ee 100644 --- a/README.md +++ b/README.md @@ -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 ```