[Zope3-dev] Test failure  - testRegisterTranslations
    Dave Harris 
    dpharris76 at msn.com
       
    Sun Jan 18 19:21:05 EST 2004
    
    
  
On Windows XP, I get a unit test failure in testRegisterTranslations. I've 
tracked the problem down to a CVS checkout problem with the binary file 
zope-i18n.mo. Here's the traceback:
testRegisterTranslations 
(zope.app.i18n.tests.testi18ndirectives.DirectivesTest) ...
Error in test testRegisterTranslations 
(zope.app.i18n.tests.testi18ndirectives.DirectivesTest)
Traceback (most recent call last):
  File "D:\sf\Zope3\src\zope\app\i18n\tests\testi18ndirectives.py", line 54, 
in testRegisterTranslations
[many, many lines elided]
  File "C:\PYTHON23\Lib\gettext.py", line 260, in _parse
    raise IOError(0, 'File is corrupt', filename)
ZopeXMLConfigurationError: File "<string>", line 7.12-7.61
    IOError: [Errno 0] File is corrupt: 
u'D:\\sf\\Zope3\\src\\zope\\i18n\\tests\\locale\\en\\LC_MESSAGES\\zope-i18n.mo'
The contents of the zope-i18n.mo file do not match the equivalent file which 
was distributed in Milestone 4. When I run msgfmt.py on zope-i18n.po, the 
resulting .mo file matches Milestone 4 _and_ permits the test to pass.
As I understand CVS, versioning binary files requires special consideration. 
Can zope-i18n.mo be tagged binary in the repository, or does my checkout 
process (I'm using TortoiseCVS) have to be configured beforehand?
Thanks for any insight,
Dave Harris 
    
    
More information about the Zope3-dev
mailing list