-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Aspeli wrote: > Tres Seaver wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Martin Aspeli wrote: >>> Log message for revision 99146: >>> Let the <permission /> directive auto-register permissions that don't >>> exist already >> This kind of test is a "poster child" for why doctests with lots of >> output are fragile: even though it uses pprint, it *still* fails on >> different Python versions (i.e., it is breaking on Python 2.4). > > Sigh... sorry. > > I didn't even realise Zope 2.12 was meant to run with Python 2.4. I > thought it was 2.5/2.6 only. Guess I was wrong. > >> This test needs to be rewritten either as a traditional unittest (my >> preference), or the assertions about the state need to be rewritten in >> "fine grained" form. > > I just copied the tests that were already there, so I'd prefer to keep > them in the same place.
I meant to make assertions which didn't rely on the repr / pprint output format, not to break up the test into multiple cases. > Can you show me the failure you get? http://mail.zope.org/pipermail/zope-tests/2009-April/011469.html Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [email protected] 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 iD8DBQFJ5hnw+gerLs4ltQ4RAodpAKCBj5WXH7JXy6AXy7Pjh+3eJVIGuACgltPz vuhjlMG080AZS09S5i0S3kA= =kNrl -----END PGP SIGNATURE----- _______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
