-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/25/2011 09:30 AM, Tres Seaver wrote:
[13] FAILED winbot / ztk_dev py_254_win32 https://mail.zope.org/pipermail/zope-tests/2011-May/041891.html
[14] FAILED winbot / ztk_dev py_265_win32 https://mail.zope.org/pipermail/zope-tests/2011-May/041892.html
[15] FAILED winbot / ztk_dev py_265_win64 https://mail.zope.org/pipermail/zope-tests/2011-May/041894.html
[16] FAILED winbot / ztk_dev py_270_win32 https://mail.zope.org/pipermail/zope-tests/2011-May/041895.html
[17] FAILED winbot / ztk_dev py_270_win64 https://mail.zope.org/pipermail/zope-tests/2011-May/041897.html
These are all the same bug::
-------------------------- $< ------------------------- Error in test testNoTargetLanguage (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain) Traceback (most recent call last): File "c:\Python27_64\lib\unittest\case.py", line 318, in run testMethod() File "c:\buildslave\ztk_dev_py_270_win64\build\src\zope.i18n\src\zope\i18n\tests\test_itranslationdomain.py", line 99, in testNoTargetLanguage eq(translate('short_greeting', context=context, default=42), 42) File "c:\buildslave\ztk_dev_py_270_win64\build\src\zope.app.i18n\src\zope\app\i18n\translationdomain.py", line 74, in translate catalog_names = self._catalogs.get(target_language, []) TypeError: Object has default comparison -------------------------- $< -------------------------
WTF? We have tests for zope.i18n which pull in code from zope.app.i18n? Not only that, but we have an error being raised from the OOBTree changes Jim landed in October, in a code base which hasn't changed since March.
We definitely have some kind of failed cleanup going on here: the standalone buildout for zope.i18n does *not* pull in zope.app.i18n, and the tests all pass without it.
"Silly wabbit" -- I assumed that the traceback stack accurately reflected the source of the failing test. This failure is actually in zope.app.i18n's tests, not zope.i18n's (ob. note on the evil of frameworking out unit tests). However, I cannot reproduce the failure in a standalone checkout of zope.app.i18n. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3dB/AACgkQ+gerLs4ltQ6AuQCfY2gkcMk2D0tR367tf9rFa6dS 1pIAoIrY08cCem2lfTyZLoCP4pdY6uJP =ankk -----END PGP SIGNATURE-----