summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-11-16 15:40:09 (GMT)
committerGitHub <noreply@github.com>2023-11-16 15:40:09 (GMT)
commit7680da458398c5a08b9c32785b1eeb7b7c0887e4 (patch)
treeb52152330b1ad9c858fe2315195e9173f58d4a5b /Lib/test/test_typing.py
parent12c7e9d573de57343cf018fb4e67521aba46c90f (diff)
downloadcpython-7680da458398c5a08b9c32785b1eeb7b7c0887e4.zip
cpython-7680da458398c5a08b9c32785b1eeb7b7c0887e4.tar.gz
cpython-7680da458398c5a08b9c32785b1eeb7b7c0887e4.tar.bz2
gh-112155: Run `typing.py` doctests as part of `test_typing` (#112156)
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r--Lib/test/test_typing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index 1e812e1..8681e7e 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -9464,5 +9464,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()