[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax
Serhiy Storchaka
report at bugs.python.org
Fri May 5 06:46:50 EDT 2017
Serhiy Storchaka added the comment:
> If you use directly the parser class and pass an open file object, in that case, yes, my change closes the file.
Or if the high-level *function* parse() is called with an open file object.
I don't know whether this is desirable change, but this change can break third-party code, therefore it should be documented in Misc/NEWS.
And it is worth to add a check in test_parse_bytes that the passed file object is closed after error.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30264>
_______________________________________
More information about the Python-bugs-list
mailing list