Skip to content

Commit 919be35

Browse files
authored
[3.12] gh-112155: Run typing.py doctests during tests (GH-112156) (#112230)
1 parent 0ea6454 commit 919be35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_typing.py

+6
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)