]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93096: Load doctests in `test_itertools` (#131133)
authordonBarbos <donbarbos@proton.me>
Wed, 12 Mar 2025 07:40:59 +0000 (11:40 +0400)
committerGitHub <noreply@github.com>
Wed, 12 Mar 2025 07:40:59 +0000 (08:40 +0100)
Lib/test/test_itertools.py

index f0fd1d28f56f55afce3259fd36e1450fdbe76f27..61bea9dba07fec6807188cd1f067126190af1ff2 100644 (file)
@@ -1,5 +1,6 @@
 import doctest
 import unittest
+import itertools
 from test import support
 from test.support import threading_helper, script_helper
 from itertools import *
@@ -2531,7 +2532,7 @@ class SizeofTest(unittest.TestCase):
 
 
 def load_tests(loader, tests, pattern):
-    tests.addTest(doctest.DocTestSuite())
+    tests.addTest(doctest.DocTestSuite(itertools))
     return tests