Skip to content

Commit 9766819

Browse files
authored
Remove now unused function from itertools tests (#122100)
1 parent c09d4c4 commit 9766819

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Lib/test/test_itertools.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,6 @@
1515
import struct
1616
import threading
1717
import gc
18-
import warnings
19-
20-
def pickle_deprecated(testfunc):
21-
""" Run the test three times.
22-
First, verify that a Deprecation Warning is raised.
23-
Second, run normally but with DeprecationWarnings temporarily disabled.
24-
Third, run with warnings promoted to errors.
25-
"""
26-
def inner(self):
27-
with self.assertWarns(DeprecationWarning):
28-
testfunc(self)
29-
with warnings.catch_warnings():
30-
warnings.simplefilter("ignore", category=DeprecationWarning)
31-
testfunc(self)
32-
with warnings.catch_warnings():
33-
warnings.simplefilter("error", category=DeprecationWarning)
34-
with self.assertRaises((DeprecationWarning, AssertionError, SystemError)):
35-
testfunc(self)
36-
37-
return inner
3818

3919
maxsize = support.MAX_Py_ssize_t
4020
minsize = -maxsize-1

0 commit comments

Comments
 (0)