]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-93096: Load doctests in `test_itertools` (GH-131133) (#131137)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Mar 2025 08:00:17 +0000 (09:00 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Mar 2025 08:00:17 +0000 (08:00 +0000)
gh-93096: Load doctests in `test_itertools` (GH-131133)
(cherry picked from commit 15a8412b5e12ae46761843d4442c7b56ffa75176)

Co-authored-by: donBarbos <donbarbos@proton.me>
Lib/test/test_itertools.py

index 5b01f93bffc5490263896eb16e12579ce045a866..7378c5faf51bc56b0ffa13e5c0371f635dddea40 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 *
@@ -2807,7 +2808,7 @@ class SizeofTest(unittest.TestCase):
 
 
 def load_tests(loader, tests, pattern):
-    tests.addTest(doctest.DocTestSuite())
+    tests.addTest(doctest.DocTestSuite(itertools))
     return tests