[libxml2] Adjust expected error in Python tests



commit 9d461ac7d097fc9d0ac2e947b2796d9e189c7e81
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Thu Sep 26 16:17:31 2019 +0200

    Adjust expected error in Python tests
    
    Closes #107.

 python/tests/tstLastError.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py
index d5f9be75..81d0acc4 100755
--- a/python/tests/tstLastError.py
+++ b/python/tests/tstLastError.py
@@ -68,8 +68,8 @@ class TestCase(unittest.TestCase):
                         (s,len(s),"dummy.xml",None,0),
                         libxml2.treeError,
                         domain=libxml2.XML_FROM_PARSER,
-                        code=libxml2.XML_ERR_TAG_NOT_FINISHED,
-                        message='Premature end of data in tag x line 1\n',
+                        code=libxml2.XML_ERR_LTSLASH_REQUIRED,
+                        message='EndTag: \'</\' not found\n',
                         level=libxml2.XML_ERR_FATAL,
                         file='dummy.xml',
                         line=3)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]