Comment 1 for bug 666345

Revision history for this message
Jonathan Lange (jml) wrote :

Thanks for the report. The test looks to be passing on Hudson, so I think we can rule out Python 2.4.

 * Do you get the failure reliably, or does it only happen from time to time?
 * Could you please try with latest trunk and see if you still get the failure?
 * If trunk still fails, could you please try this patch:

=== modified file 'testtools/tests/test_spinner.py'
--- testtools/tests/test_spinner.py 2010-10-26 10:42:59 +0000
+++ testtools/tests/test_spinner.py 2010-10-31 17:32:33 +0000
@@ -237,7 +237,7 @@ class TestRunInReactor(TestCase):
         reactor = self.make_reactor()
         timeout = self.make_timeout()
         spinner = self.make_spinner(reactor)
- spinner.run(timeout, reactor.callInThread, time.sleep, timeout / 2.0)
+ spinner.run(timeout * 10, reactor.callInThread, time.sleep, timeout)
         self.assertThat(list(threading.enumerate()), Equals(current_threads))

     def test_leftover_junk_available(self):