[lxml-dev] lxml 2.2.3 - html.usedoctest bug?
Hi, I put this into my doctest:
import lxml.html.usedoctest
And now I get: Error in test /Users/optilude/Development/Plone/Code/Build/plone/4.0/src/plone.app.blocks/plone/app/blocks/rendering.txt Traceback (most recent call last): File "/opt/python/parts/opt/lib/python2.6/unittest.py", line 279, in run testMethod() File "/Users/optilude/.buildout/eggs/zope.testing-3.7.7-py2.6.egg/zope/testing/doctest.py", line 2327, in runTest test, out=write, clear_globs=False) File "/Users/optilude/.buildout/eggs/zope.testing-3.7.7-py2.6.egg/zope/testing/doctest.py", line 1497, in run return self.__run(test, compileflags, out) File "/Users/optilude/.buildout/eggs/zope.testing-3.7.7-py2.6.egg/zope/testing/doctest.py", line 1376, in __run if check(example.want, got, self.optionflags): File "/Users/optilude/.buildout/eggs/lxml-2.2.3-py2.6-macosx-10.6-i386.egg/lxml/doctestcompare.py", line 100, in check_output except etree.XMLSyntaxError: NameError: global name 'etree' is not defined This is pretty weird, since 'etree' is definitely imported in doctestcompare.py in my lxml egg. Any ideas? Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book
participants (1)
-
Martin Aspeli