From d003a5bd2505a7fa04f50504b68ba8fca67349cd Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 8 Sep 2021 13:07:40 +0300 Subject: bpo-45132 Remove deprecated __getitem__ methods (GH-28225) Remove deprecated __getitem__ methods of xml.dom.pulldom.DOMEventStream, wsgiref.util.FileWrapper and fileinput.FileInput, deprecated since Python 3.9. --- Lib/test/test_pulldom.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Lib/test/test_pulldom.py') diff --git a/Lib/test/test_pulldom.py b/Lib/test/test_pulldom.py index 4a1bad3442..6dc51e4371 100644 --- a/Lib/test/test_pulldom.py +++ b/Lib/test/test_pulldom.py @@ -160,13 +160,6 @@ class PullDOMTestCase(unittest.TestCase): self.fail( "Ran out of events, but should have received END_DOCUMENT") - def test_getitem_deprecation(self): - parser = pulldom.parseString(SMALL_SAMPLE) - with self.assertWarnsRegex(DeprecationWarning, - r'Use iterator protocol instead'): - # This should have returned 'END_ELEMENT'. - self.assertEqual(parser[-1][0], pulldom.START_DOCUMENT) - def test_external_ges_default(self): parser = pulldom.parseString(SMALL_SAMPLE) saxparser = parser.parser -- cgit v1.2.1