Skip to content

Commit 593120f

Browse files
committed
[3.12] pythongh-112155: Run typing.py doctests during tests (pythonGH-112156)
1 parent 0ea6454 commit 593120f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_typing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9282,5 +9282,11 @@ def test_is_not_instance_of_iterable(self):
92829282
self.assertNotIsInstance(type_to_test, collections.abc.Iterable)
92839283

92849284

9285+
def load_tests(loader, tests, pattern):
9286+
import doctest
9287+
tests.addTests(doctest.DocTestSuite(typing))
9288+
return tests
9289+
9290+
92859291
if __name__ == '__main__':
92869292
main()

0 commit comments

Comments
 (0)