Skip to content

Commit 969631a

Browse files
[3.12] gh-93096: Load doctests in test_itertools (GH-131133) (#131137)
gh-93096: Load doctests in `test_itertools` (GH-131133) (cherry picked from commit 15a8412) Co-authored-by: donBarbos <[email protected]>
1 parent afffd97 commit 969631a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_itertools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import doctest
22
import unittest
3+
import itertools
34
from test import support
45
from test.support import threading_helper, script_helper
56
from itertools import *
@@ -2807,7 +2808,7 @@ def test_permutations_sizeof(self):
28072808

28082809

28092810
def load_tests(loader, tests, pattern):
2810-
tests.addTest(doctest.DocTestSuite())
2811+
tests.addTest(doctest.DocTestSuite(itertools))
28112812
return tests
28122813

28132814

0 commit comments

Comments
 (0)