diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-01-14 23:50:34 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-01-14 23:50:34 +0000 |
commit | 4f4a27f97068914565ce14895607b9921f7021f4 (patch) | |
tree | ebec8e22992e8149b29af13d204e718e538e4172 /python/tests | |
parent | c2c0d142175989f17f2231721d12ef714a292eb2 (diff) | |
download | libxml2-4f4a27f97068914565ce14895607b9921f7021f4.tar.gz |
applied patch from Stephane Bidoul to add enums to the Python bindings.
* python/generator.py python/tests/tstLastError.py: applied
patch from Stephane Bidoul to add enums to the Python bindings.
Daniel
Diffstat (limited to 'python/tests')
-rwxr-xr-x | python/tests/tstLastError.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py index 12229e8c..83e98b87 100755 --- a/python/tests/tstLastError.py +++ b/python/tests/tstLastError.py @@ -48,10 +48,10 @@ class TestCase(unittest.TestCase): self.failUnlessXmlError(libxml2.readFile, ("dummy.xml",None,0), libxml2.treeError, - domain=8, # XML_FROM_IO - code=1549, # XML_IO_LOAD_ERROR + domain=libxml2.XML_FROM_IO, + code=libxml2.XML_IO_LOAD_ERROR, message='failed to load external entity "dummy.xml"\n', - level=1, # XML_ERR_WARNING + level=libxml2.XML_ERR_WARNING, file=None, line=0) @@ -61,10 +61,10 @@ class TestCase(unittest.TestCase): self.failUnlessXmlError(libxml2.readMemory, (s,len(s),"dummy.xml",None,0), libxml2.treeError, - domain=1, # XML_FROM_PARSER - code=77, # XML_ERR_TAG_NOT_FINISHED + domain=libxml2.XML_FROM_PARSER, + code=libxml2.XML_ERR_TAG_NOT_FINISHED, message='Premature end of data in tag x line 1\n', - level=3, # XML_ERR_FATAL + level=libxml2.XML_ERR_FATAL, file='dummy.xml', line=3) |