From 488fe3787ab236fc85f7af51e77d9b0f8087f487 Mon Sep 17 00:00:00 2001 From: Bradley Reynolds Date: Sun, 21 Jul 2024 21:01:13 +0000 Subject: [PATCH] Remove now unused function from itertools tests Follow up to https://github.com/python/cpython/pull/118816 Signed-off-by: Bradley Reynolds --- Lib/test/test_itertools.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 052dcace4efdc7..9c0c4b4de18cf1 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -15,26 +15,6 @@ 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