Thomas Barlow added the comment: Just adding a patch here with a few unit tests to demonstrate the issue, comments here are welcome. This is my first patch, I believe I have put the tests in the correct place.
It appears the problem only occurs if there is an incomplete XML entity where a sequence of valid characters (for an XML entity's name) lead to the end-of-file. The test case for "a&b " passes, as it detects the space as an illegal character for the entity name. ---------- keywords: +patch nosy: +Thomas.Barlow Added file: http://bugs.python.org/file29979/issue17802-unittest.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17802> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com