Commit 3b8b0d6
pythongh-117187: Fix XML tests for vanilla Expat <2.6.0 (pythonGH-117203)
This fixes XML unittest fallout from the python#115398 security fix. When configured using `--with-system-expat` on systems with older pre 2.6.0 versions of libexpat, our unittests were failing.
* sax|etree: Simplify Expat version guard where simplifiable
Idea by Matěj Cepl
* sax|etree: Fix reparse deferral tests for vanilla Expat <2.6.0
This *does not fix* the case of distros with an older version of libexpat with the 2.6.0 feature backported as a security fix. (Ubuntu is a known example of this with its libexpat1 2.5.0-2ubunutu0.1 package)
(cherry picked from commit 9f74e86)
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>1 parent a04a0f6 commit 3b8b0d6
3 files changed
Lines changed: 9 additions & 9 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
1214 | 1217 | | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
| 1250 | + | |
1250 | 1251 | | |
1251 | | - | |
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1619 | 1619 | | |
1620 | 1620 | | |
1621 | 1621 | | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1622 | 1625 | | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | 1626 | | |
1628 | 1627 | | |
1629 | 1628 | | |
| |||
1655 | 1654 | | |
1656 | 1655 | | |
1657 | 1656 | | |
| 1657 | + | |
1658 | 1658 | | |
1659 | | - | |
1660 | 1659 | | |
1661 | 1660 | | |
1662 | 1661 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments