Comment 4 for bug 487998

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 487998] Re: text_type can give IndexError: string index out of range in zope 2.11 & 2.12

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

Simon Michael wrote:

> See the last two lines I commented ? Lines 39 and 40 in the paste. i
> grows too big, causing the IndexError.

What IndexError? The attached patch adds two calls to the test case for
that function which prepend 15 spaces to text: they pass without
errors. This patch is made against a trunk checkout, after cleaning up
some typical "old Zope" ugly testing cruft.

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

iEYEARECAAYFAksNSWwACgkQ+gerLs4ltQ7IzwCgm8xyUcO5cxCm9rRssN4rv+8f
imkAoJ9TdzRDz8SjfTULDSGD8IQ6dnQR
=lacZ
-----END PGP SIGNATURE-----