Update to 6.0.1 (rhbz#2390283)

This commit is contained in:
Lumir Balhar 2025-08-24 22:22:09 +02:00
commit 1fd88c3632
4 changed files with 3 additions and 29 deletions

1
.gitignore vendored
View file

@ -71,3 +71,4 @@ lxml-2.2.7.tar.gz.asc
/lxml-5.3.2-no-isoschematron-rng.tar.gz
/lxml-5.4.0-no-isoschematron-rng.tar.gz
/lxml-6.0.0-no-isoschematron-rng.tar.gz
/lxml-6.0.1-no-isoschematron-rng.tar.gz

View file

@ -1,23 +0,0 @@
From ba44171d105f291568e239970c152e800cf8a3b7 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Tue, 5 Aug 2025 12:15:03 +0200
Subject: [PATCH] Fix `test_wrap_html` with the latest Python HTMLParser
Fixes: https://bugs.launchpad.net/lxml/+bug/2119510
---
src/lxml/html/tests/test_elementsoup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxml/html/tests/test_elementsoup.py b/src/lxml/html/tests/test_elementsoup.py
index 94d21636b..7e4aa899b 100644
--- a/src/lxml/html/tests/test_elementsoup.py
+++ b/src/lxml/html/tests/test_elementsoup.py
@@ -50,7 +50,7 @@ def test_head_body(self):
def test_wrap_html(self):
# <head> outside <html>, parser should fix that
- html = '<head><title>title</test></head><html><body/></html>'
+ html = '<head><title>title</title></head><html><body/></html>'
res = b'<html><head><title>title</title></head><body></body></html>'
tree = self.soupparser.fromstring(html)
self.assertEqual(tostring(tree), res)

View file

@ -1,5 +1,5 @@
Name: python-lxml
Version: 6.0.0
Version: 6.0.1
Release: %autorelease
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
@ -16,10 +16,6 @@ URL: https://github.com/lxml/lxml
Source0: lxml-%{version}-no-isoschematron-rng.tar.gz
Source1: get-lxml-source.sh
# Fix for test_wrap_html
# https://bugs.launchpad.net/lxml/+bug/2119510
Patch: https://github.com/lxml/lxml/pull/473.patch
BuildRequires: gcc
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel

View file

@ -1 +1 @@
SHA512 (lxml-6.0.0-no-isoschematron-rng.tar.gz) = 482df7ae2dde50a6d84a30bdc10486c4b30ba81b283e322abd12e08573cebfc9aa73f5067c2a883b3753955589edd2da5cba00077fd8458f39768041882f8425
SHA512 (lxml-6.0.1-no-isoschematron-rng.tar.gz) = e503880792636b01755b1d7aad29ee29fe9af77a295811050b763162a79fa54a08d5a73ced1de9fec6e93696bcb75e6050034696bb4daba3f9a5ed1695359937