8000 gh-112155: Run `typing.py` doctests during tests by sobolevn · Pull Request #112156 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-112155: Run typing.py doctests during tests #112156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-112155: Run typing.py doctests during tests
  • Loading branch information
sobolevn committed Nov 16, 2023
commit 66d7e32f15baa6ad4ae8719e6d0486e647d56610
6 changes: 6 additions & 0 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9464,5 +9464,11 @@ def test_is_not_instance_of_iterable(self):
self.assertNotIsInstance(type_to_test, collections.abc.Iterable)


def load_tests(loader, tests, ignore):
import doctest
tests.addTests(doctest.DocTestSuite(typing))
return tests


if __name__ == '__main__':
main()
0