[lxml-dev] lxml.doctestcompare
Ian Bicking
ianb at colorstudy.com
Wed Jun 6 18:43:25 CEST 2007
Ian Bicking wrote:
> I figured out why the tests fail when run in series, when using
> lxml.(html.)usedoctest -- since it works on import, the import is only
> run once. After that the module isn't really imported again, so the
> code that executes on import isn't run.
>
> I don't know if there's any feasible way around this. Well, I could
> unload the module when the doctest is through, just like I unload my
> OutputChecker hack. That might be okay. Bah.
I put in a hack for this too. It's getting more and more ugly, but I
place the blame firmly on doctest.
I was trying to review some changes Stefan made, and got this:
$ svn diff -r43989:44015 \
http://codespeak.net/svn/lxml/branch/html/src/lxml/html/clean.py
svn: REPORT request failed on
'/svn/!svn/bc/44056/lxml/branch/html/src/lxml/html/clean.py'
svn: File not found: revision 43853, path
'/lxml/trunk/src/lxml/html/clean.py'
I don't understand that. That file hasn't been moved. What am I missing?
--
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
More information about the lxml-dev
mailing list