typing.py contains at least two doctests:
cpython/Lib/typing.py
Lines 3377 to 3414 in 81ab0e8
But, they are not ever executed.
I propose to add a DocTestSuite to test_typing to run these tests.
Note, that this is related but not similar to #111682
pythongh-112155: Run `typing.py` doctests during tests
gh-112155: Run `typing.py` doctests as part of `test_typing` (#112156)
The change has been applied to main. Lib/typing.py has no doctests on the 3.12 or 3.11 branches, so there's no need to backport this.
Thanks @sobolevn!
[3.12] pythongh-112155: Run `typing.py` doctests during tests (python…
[3.11] pythongh-112155: Run `typing.py` doctests during tests (python…
[3.12] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#…
[3.11] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#…
pythongh-112155: Run `typing.py` doctests as part of `test_typing` (p…
Activity
pythongh-112155: Run `typing.py` doctests during tests
gh-112155: Run `typing.py` doctests as part of `test_typing` (#112156)
AlexWaygood commented on Nov 16, 2023
The change has been applied to main. Lib/typing.py has no doctests on the 3.12 or 3.11 branches, so there's no need to backport this.
Thanks @sobolevn!
[3.12] pythongh-112155: Run `typing.py` doctests during tests (python…
[3.11] pythongh-112155: Run `typing.py` doctests during tests (python…
[3.12] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#…
[3.11] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#…
pythongh-112155: Run `typing.py` doctests as part of `test_typing` (p…
pythongh-112155: Run `typing.py` doctests as part of `test_typing` (p…