]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-140601: Refactor ElementTree.iterparse() tests (GH-141499) (GH-141502)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Nov 2025 12:03:09 +0000 (13:03 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Nov 2025 12:03:09 +0000 (12:03 +0000)
commit7b8c257933f29b9c0b670afc26b6a308b14c9ef0
treeb9f17f95b4f1f2d053951a2b935d4ef04e55f24b
parent79195df23c694770b3b03ff90b90ae734f930cb7
[3.14] gh-140601: Refactor ElementTree.iterparse() tests (GH-141499) (GH-141502)

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