Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93fbcd6

Browse files
authored
[3.11] gh-112155: Run typing.py doctests during tests (GH-112156) (#112231)
1 parent e7aa40a commit 93fbcd6

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
@@ -8466,5 +8466,11 @@ def test_is_not_instance_of_iterable(self):
84668466
self.assertNotIsInstance(type_to_test, collections.abc.Iterable)
84678467

84688468

8469+
def load_tests(loader, tests, pattern):
8470+
import doctest
8471+
tests.addTests(doctest.DocTestSuite(typing))
8472+
return tests
8473+
8474+
84698475
if __name__ == '__main__':
84708476
main()

0 commit comments

Comments
 (0)