[Zope-dev] Zope Tests: 7 OK, 1 Failed

Tres Seaver tseaver at palladion.com
Tue Apr 7 09:01:51 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zope Tests Summarizer wrote:

> Test failures
> -------------
> 
> Subject: FAILED (errors=1) : Zope-trunk-alltests Python-2.6.1 : Linux
> From: Zope Tests
> Date: Mon Apr  6 21:02:44 EDT 2009
> URL: http://mail.zope.org/pipermail/zope-tests/2009-April/011410.html

This failure is due to a changed (less tolerant) HTMLParser module in
Python 2.6.  The new module barfs on invalid quasi-numeric entities
('&#0a' in our example, which is missing the 'X' to make it valid).

Even if I delete the broken case, the test fails again because the 2.6
parser also converts the numeric entities to unicode, injecting Ctrl-A
and LF for '' and '&X0a;'!

I'm not sure how we should attempt to fix the test, except for a "big
hammer" check of sys.version_info and two different inputs / expected
outputs.  If nobody has a better idea, I will check that in tomorrow
(see attached patch).


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ206/+gerLs4ltQ4RAqpkAKDGS2c66egb0sO3VTUiUlU0LLpp2QCfcf0H
Q8HnrOKqduKjuHIiMPlwbUc=
=Vwvg
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zope.tal-2.6_compat.patch
Type: text/x-patch
Size: 1191 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090407/542f0527/attachment.bin 


More information about the Zope-Dev mailing list