66be95
From 852ed1092bd80b6b9a51db24371047ec88843031 Mon Sep 17 00:00:00 2001
66be95
From: Stefan Behnel <stefan_ml@behnel.de>
66be95
Date: Tue, 18 May 2021 22:02:02 +0200
66be95
Subject: [PATCH] Adapt a test to a behavioural change in libxml2 2.9.11+.
66be95
66be95
---
66be95
 src/lxml/tests/test_etree.py | 5 ++++-
66be95
 1 file changed, 4 insertions(+), 1 deletion(-)
66be95
66be95
diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
66be95
index 9cf70604b..42613dcbe 100644
66be95
--- a/src/lxml/tests/test_etree.py
66be95
+++ b/src/lxml/tests/test_etree.py
66be95
@@ -3036,7 +3036,10 @@ def test_subelement_nsmap(self):
66be95
     def test_html_prefix_nsmap(self):
66be95
         etree = self.etree
66be95
         el = etree.HTML('<hha:page-description>aa</hha:page-description>').find('.//page-description')
66be95
-        self.assertEqual({'hha': None}, el.nsmap)
66be95
+        if etree.LIBXML_VERSION < (2, 9, 11):
66be95
+            self.assertEqual({'hha': None}, el.nsmap)
66be95
+        else:
66be95
+            self.assertEqual({}, el.nsmap)
66be95
 
66be95
     def test_getchildren(self):
66be95
         Element = self.etree.Element