From: Bradley Reynolds Date: Mon, 22 Jul 2024 15:03:20 +0000 (-0500) Subject: Remove now unused function from itertools tests (#122100) X-Git-Tag: v3.14.0a1~1032 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97668192f7670caebe04c0cbcc488ae0334597d9;p=thirdparty%2FPython%2Fcpython.git Remove now unused function from itertools tests (#122100) --- diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 052dcace4efd..9c0c4b4de18c 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -15,26 +15,6 @@ import sys import struct import threading import gc -import warnings - -def pickle_deprecated(testfunc): - """ Run the test three times. - First, verify that a Deprecation Warning is raised. - Second, run normally but with DeprecationWarnings temporarily disabled. - Third, run with warnings promoted to errors. - """ - def inner(self): - with self.assertWarns(DeprecationWarning): - testfunc(self) - with warnings.catch_warnings(): - warnings.simplefilter("ignore", category=DeprecationWarning) - testfunc(self) - with warnings.catch_warnings(): - warnings.simplefilter("error", category=DeprecationWarning) - with self.assertRaises((DeprecationWarning, AssertionError, SystemError)): - testfunc(self) - - return inner maxsize = support.MAX_Py_ssize_t minsize = -maxsize-1