https://github.com/python/cpython/commit/15a8412b5e12ae46761843d4442c7b56ffa75176
commit: 15a8412b5e12ae46761843d4442c7b56ffa75176
branch: main
author: donBarbos <donbar...@proton.me>
committer: vstinner <vstin...@python.org>
date: 2025-03-12T08:40:59+01:00
summary:

gh-93096: Load doctests in `test_itertools` (#131133)

files:
M Lib/test/test_itertools.py

diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index f0fd1d28f56f55..61bea9dba07fec 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -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 @@ def test_permutations_sizeof(self):
 
 
 def load_tests(loader, tests, pattern):
-    tests.addTest(doctest.DocTestSuite())
+    tests.addTest(doctest.DocTestSuite(itertools))
     return tests
 
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to