From: donBarbos Date: Wed, 12 Mar 2025 07:40:59 +0000 (+0400) Subject: gh-93096: Load doctests in `test_itertools` (#131133) X-Git-Tag: v3.14.0a6~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15a8412b5e12ae46761843d4442c7b56ffa75176;p=thirdparty%2FPython%2Fcpython.git gh-93096: Load doctests in `test_itertools` (#131133) --- diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index f0fd1d28f56f..61bea9dba07f 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 @@ class SizeofTest(unittest.TestCase): def load_tests(loader, tests, pattern): - tests.addTest(doctest.DocTestSuite()) + tests.addTest(doctest.DocTestSuite(itertools)) return tests