[Zope-CMF] CachingPolicyManager tests

Yuppie schubbe@web.de
Tue, 19 Nov 2002 23:46:25 +0100


Hi!


This problem normally just appears east of the Atlantic Ocean:


======================================================================
ERROR: test_combined 
(Products.CMFCore.tests.test_CachingPolicyManager.CachingPolicyTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"C:\Programme\Zope260\lib\python\Products\CMFCore\tests\test_CachingPolicyManager.py", 
line 26, in setUp
     self._epoch = DateTime( '1970/01/01' )
   File "C:\Programme\Zope260\lib\python\DateTime\DateTime.py", line 
652, in __init__
     yr,mo,dy,hr,mn,sc,tz=self._parse(arg)
   File "C:\Programme\Zope260\lib\python\DateTime\DateTime.py", line 
1033, in _parse
     tz = self._calcTimezoneName(x, ms)
   File "C:\Programme\Zope260\lib\python\DateTime\DateTime.py", line 
852, in _calcTimezoneName
     ltm = safelocaltime(nearTime)
   File "C:\Programme\Zope260\lib\python\DateTime\DateTime.py", line 
399, in safelocaltime
     rval = localtime(t_int)
IOError: [Errno 22] Invalid argument


Due to a bug in the DateTime module (see 
<http://collector.zope.org/Zope/484> ), some CachingPolicyManager tests 
fail if your machine's timezone is GMT+X (X > 0). I don't think this bug 
will be fixed soon.

My question:
I don't understand what the CachingPolicyTests actually do. Is
<code>
         self._epoch = DateTime( '1970/01/01' )
</code>
necessary or could it also be an other date?


TIA,
Yuppie