Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 586742

Summary: [PATCH] dev-lang/python tests fail with dev-libs/expat-2.2.0 (as they rely on a bug fixed in 2.2.0)
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.python.org/issue27369
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for 2.7.11
Patch for 3.x.x

Description Sebastian Pipping gentoo-dev 2016-06-22 18:08:38 UTC
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.
Comment 1 Sebastian Pipping gentoo-dev 2016-06-22 18:08:58 UTC
Created attachment 438470 [details, diff]
Patch for 3.x.x
Comment 2 Sebastian Pipping gentoo-dev 2016-06-22 18:19:14 UTC
The issue is know upstream at http://bugs.python.org/issue27369 know.
Comment 3 David Denoncin 2020-08-01 16:36:08 UTC
Marked as resolved upstream for py3.6. Is this bug affecting >3.6 ?
Comment 4 Sebastian Pipping gentoo-dev 2020-08-01 17:39:08 UTC
(In reply to David Denoncin from comment #3)
> Marked as resolved upstream for py3.6. Is this bug affecting >3.6 ?

I ran the tests on python-3.6.11-r2.ebuild.ebuild just now and with dev-libs/expat-2.2.9 installed and the log said:

  0:01:48 load avg: 4.06 [190/406] test_pyexpat passed -- running: test_multiprocessing_fork (57 sec 888 ms)

So without having looked further, that looks good and fixed to me.
Comment 5 David Denoncin 2020-08-01 18:27:28 UTC
I get something similar for python-3.7.8-r2. Closing as fixed.