Created attachment 438468 [details, diff]
Patch for 2.7.11
Expat commit https://sourceforge.net/p/expat/code_git/ci/550eb6bbaa7e6efc44e94cab945fe9c781c01211 fixed a bug that the Python test suite relies on, changing the byte error offset from 14 to 13 for a specific malformed XML input.
Attached you find patches for consideration to fix all supported Python versions in Gentoo.
Created attachment 438470 [details, diff]
Patch for 3.x.x
The issue is know upstream at http://bugs.python.org/issue27369 know.