[Zope-dev] zope-tests - FAILED: 5, OK: 19
Tres Seaver
tseaver at palladion.com
Fri Jan 18 15:26:49 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/18/2013 08:58 AM, Maurits van Rees wrote:
> Op 16-01-13 18:47, Tres Seaver schreef:
>>> [3] FAILED winbot / z3c.ptcompat_py_265_32
>>> https://mail.zope.org/pipermail/zope-tests/2013-January/071440.html
>>
>>
>>>
Same error related to the recent zope.pagetemplates changes.
>
> This is a test that passes with standard zope.pagetemplates, but fails
> in combination with Chameleon. It is in a recursion test that has
> been added in zope.pagetemplate 4.0.0.
>
> I have now added a bin/testcompat script in the zope.pagetemplates
> buildout to test with z3c.pt(compat) plus Chameleon.
>
> The expected output for this test is:
>
> <!-- See https://bugs.launchpad.net/zope.pagetemplate/+bug/732972 -->
> <ul> <li>root</li> <li> <ul> <li>first</li> </ul> </li> <li> <ul>
> <li>second</li> </ul> </li> </ul>
>
> The real output is:
>
> <!-- See https://bugs.launchpad.net/zope.pagetemplate/+bug/732972 -->
> <ul> <li>root</li> <li> <ul> <li>first</li>
>
> </ul> </li> <li> <ul> <li>second</li>
>
> </ul> </li> </ul>
>
> The difference is that the two inner '</ul>' get an extra line before
> them with a single space character.
>
> I have tried a few changes in the test template to see if that would
> result in the output html being the same with and without Chameleon,
> but that did not work.
>
> Possibly this needs a change not in zope.pagetemplate but in Chameleon
> or one of the other packages.
Or use ElementTree to normalize the XHTML before testing (since the
whitespace diffreences are semantically irrelevant).
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.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iEYEARECAAYFAlD5abkACgkQ+gerLs4ltQ4qIACgnPul4E9ztNS5Y3bhXiQRGIa4
fFYAn170Y1Z6b0fe7MQkZKSWfh9ABs/4
=Xn2k
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list