[lxml-dev] Failing lxml.html tests

jholg at gmx.de jholg at gmx.de
Fri Oct 26 17:17:04 CEST 2007


-------- Original-Nachricht --------
> Datum: Fri, 26 Oct 2007 10:03:48 -0500
> Von: Ian Bicking <ianb at colorstudy.com>
> An: Lxml-dev <lxml-dev at codespeak.net>
> Betreff: Re: [lxml-dev] Failing lxml.html tests

> (I had sent this to Stefan, but maybe someone on the list will recognize 
> something about what's going on here)
Hi,
 
> Stefan Behnel wrote:
> > Ian Bicking wrote:
> >> When I run the tests just get a lot of these:
> >>
> >>
> >> ======================================================================
> >> ERROR: test_write_method_text
> >> (lxml.tests.test_elementtree.ElementTreeTestCase)
> >> ----------------------------------------------------------------------
> >> Traceback (most recent call last):
> >>   File "unittest.py", line 260, in run
> >>     testMethod()
> >>   File "/home/ianb/src/lxml/src/lxml/tests/test_elementtree.py", line
> >> 777, in test_write_method_text
> >>     tree.write(f, method="text")
> >> TypeError: write() got an unexpected keyword argument 'method'

Stefan said something about activating keyword-only arguments functionality (which raises TypeErrors) as Python 3 introduces.
Could this be it?

Holger

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


More information about the lxml-dev mailing list