[PEAK] failing tests

Phillip J. Eby pje at telecommunity.com
Wed Feb 11 10:13:27 EST 2004


At 07:09 PM 2/10/04 -0800, darryl wrote:
>Phillip J. Eby wrote:
>
>>At 05:54 PM 2/10/04 -0800, darryl wrote:
>>
>>>hey,
>>>
>>>got 3 test failures from cvs up 5 seconds ago. Do you want the tracebacks?
>>
>>
>>Yes please.  I get no failures here on my machine, but I think I have a 
>>1.0.x version of Twisted.
>>
>>What platform are you on, btw?  I'm testing on Windows 98, Python 2.2.2.
>
>Gentoo
>twisted  1.1.0
>python 2.3.3
>
>
>======================================================================
>FAIL: testAnySuspend (peak.events.tests.test_twisted.TwistedTasksTest)
>----------------------------------------------------------------------
>Traceback (most recent call last):
>  File 
> "/usr/lib/python2.3/site-packages/peak/events/tests/test_events.py", line 
> 420, in testAnySuspend
>    v3.set(i); self.tick();
>  File "/usr/lib/python2.3/site-packages/peak/events/sources.py", line 
> 404, in set
>    self._fire(value)
>  File "/usr/lib/python2.3/site-packages/peak/events/sources.py", line 
> 280, in _fire
>    callbacks.pop(0)(self,event)
>  File "/usr/lib/python2.3/site-packages/peak/events/sources.py", line 
> 200, in onceOnly
>    return func(self, (source,event))
>  File "/usr/lib/python2.3/site-packages/peak/events/event_threads.py", 
> line 529, in step
>    self.scheduler.now()
>  File "/usr/lib/python2.3/site-packages/peak/events/twisted_support.py", 
> line 140, in _callAt
>    self.reactor.callLater(when-self.now(), what, self, when)
>  File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 
> 365, in callLater
>    assert seconds >= 0, "%s is not greater than or equal to 0 seconds" % 
> (seconds,)
>AssertionError: -0.00165295600891 is not greater than or equal to 0 seconds

Heh.  Interesting.  Looks like a floating point subtraction rounding 
problem.  I guess that'll need to change to 'max(when-self.now(),0)' in 
order to work around Twisted being picky about this.




More information about the PEAK mailing list