From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:03:24 +0000 (+0100) Subject: [3.13] gh-93096: Load doctests in `test_itertools` (GH-131133) (#131136) X-Git-Tag: v3.13.3~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65b58291b0c0e7d87383514f62dea4d875f76950;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-93096: Load doctests in `test_itertools` (GH-131133) (#131136) gh-93096: Load doctests in `test_itertools` (GH-131133) (cherry picked from commit 15a8412b5e12ae46761843d4442c7b56ffa75176) Co-authored-by: donBarbos --- diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index ab382cf4dd13..7d5ba7273890 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 * @@ -2844,7 +2845,7 @@ class SizeofTest(unittest.TestCase): def load_tests(loader, tests, pattern): - tests.addTest(doctest.DocTestSuite()) + tests.addTest(doctest.DocTestSuite(itertools)) return tests