[3.12] gh-112155: Run typing.py doctests during tests (GH-112156) (#112230)

This commit is contained in:
Nikita Sobolev 2023-11-18 14:13:37 +03:00 committed by GitHub
parent 0ea645445d
commit 919be35eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9282,5 +9282,11 @@ class TypeIterationTests(BaseTestCase):
self.assertNotIsInstance(type_to_test, collections.abc.Iterable)
def load_tests(loader, tests, pattern):
import doctest
tests.addTests(doctest.DocTestSuite(typing))
return tests
if __name__ == '__main__':
main()