Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586742 - [PATCH] dev-lang/python tests fail with dev-libs/expat-2.2.0 (as they rely on a bug fixed in 2.2.0)
Summary: [PATCH] dev-lang/python tests fail with dev-libs/expat-2.2.0 (as they rely on...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue27369
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-06-22 18:08 UTC by Sebastian Pipping
Modified: 2020-08-01 18:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for 2.7.11 (0001-Fix-Python-2.7.11-tests-for-Expat-2.2.0.patch,1.04 KB, patch)
2016-06-22 18:08 UTC, Sebastian Pipping
Details | Diff
Patch for 3.x.x (0001-Fix-Python-3.x.x-tests-for-Expat-2.2.0.patch,1.07 KB, patch)
2016-06-22 18:08 UTC, Sebastian Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.