Improve test-suite documentation (#7756)

- mypy_test and pyright no longer just test the stubs, they now also test other parts of typeshed as well.
- pytype_test.py can now be run on 3.10, meaning the whole test suite can now also be run on 3.10.
- Various test scripts now have from `__future__ import annotations`, meaning they can now only be run on 3.7+.
- Clean up the description of pyright_test.py, which had a slightly confusing wording.
- Also fix the `--dry-run` config option in mypy_test.py, which I accidentally broke in #7746
This commit is contained in:
Alex Waygood
2022-04-30 12:43:48 -06:00
committed by GitHub
parent e8e74ba26f
commit c6b3211afa
3 changed files with 31 additions and 22 deletions

View File

@@ -50,7 +50,7 @@ jobs:
- run: ./tests/pytype_test.py --print-stderr
mypy:
name: Run mypy against the stubs
name: Run mypy against typeshed
runs-on: ubuntu-latest
strategy:
matrix:
@@ -64,7 +64,7 @@ jobs:
- run: ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
pyright:
name: Run pyright against the stubs
name: Run pyright against typeshed
runs-on: ubuntu-latest
strategy:
matrix: