Commit 1c72265
gh-117187: Fix XML tests for vanilla Expat <2.6.0 (GH-117203)
This fixes XML unittest fallout from the #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 <[email protected]>
1 parent 2f9caaf commit 1c72265
File tree
3 files changed
+9
-9
lines changed- Lib/test
- Misc/NEWS.d/next/Tests
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1218 | 1221 | | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
| |||
1251 | 1251 | | |
1252 | 1252 | | |
1253 | 1253 | | |
| 1254 | + | |
1254 | 1255 | | |
1255 | | - | |
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1627 | 1627 | | |
1628 | 1628 | | |
1629 | 1629 | | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1630 | 1633 | | |
1631 | | - | |
1632 | | - | |
1633 | | - | |
1634 | | - | |
1635 | 1634 | | |
1636 | 1635 | | |
1637 | 1636 | | |
| |||
1663 | 1662 | | |
1664 | 1663 | | |
1665 | 1664 | | |
| 1665 | + | |
1666 | 1666 | | |
1667 | | - | |
1668 | 1667 | | |
1669 | 1668 | | |
1670 | 1669 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments