-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestopic-XMLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
As it was discussed here, after merging of #114269 it.root
is no longer None
once an iterator is created. There was no intention to change this, it should be reverted.
Meanwhile, I think it will be good to add test for root
attribute.
- Right after function returned iterator:
it.root
must beNone
. - After iterator exhaustion:
it.root
must be an instance ofxml.etree.ElementTree.Element
.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestopic-XMLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error