[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

Serhiy Storchaka report at bugs.python.org
Fri May 5 00:36:36 EDT 2017


Serhiy Storchaka added the comment:

As you said, calling close() can have side effects (for example invoking self._cont_handler.endDocument()). This was the argument against PR 1444.

It seems to me that if _entity_stack is not empty (this happens in case of error in entity parsing) the close() method does nothing. And maybe there are other leaks in entity parsing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30264>
_______________________________________


More information about the Python-bugs-list mailing list