]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-140601: Refactor ElementTree.iterparse() tests (GH-141499) (GH-141503)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Nov 2025 11:57:58 +0000 (12:57 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Nov 2025 11:57:58 +0000 (11:57 +0000)
commit72b6ff0a853cf66c9e9ae56f93b21d039ef16fe1
tree4221f7a0d806a42a2b5a4862ff027e9da7ee7bba
parente5b82c433c5ca6dbdcf6f857da71104f597b17d4
[3.13] gh-140601: Refactor ElementTree.iterparse() tests (GH-141499) (GH-141503)

Split existing tests on smaller methods and move them to separate class.
Rename variable "content" to "it".
Use BytesIO instead of StringIO.
Add few more tests.
(cherry picked from commit 2fbd39666663cb5ca1c0e3021ce2e7bc72331020)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_xml_etree.py