From: Nikita Sobolev Date: Sat, 18 Nov 2023 11:13:55 +0000 (+0300) Subject: [3.11] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#112231) X-Git-Tag: v3.11.7~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93fbcd644318b83619d069301851419b9238d5b6;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#112231) --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 30056e49ae29..12f78b580eff 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -8466,5 +8466,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()