[Checkins] SVN: zc.buildout/branches/tlotze-download-api/src/zc/buildout/testing.py time.sleep wants a number, not a string

Thomas Lotze tl at gocept.com
Wed May 27 13:05:34 EDT 2009


Log message for revision 100481:
  time.sleep wants a number, not a string
  

Changed:
  U   zc.buildout/branches/tlotze-download-api/src/zc/buildout/testing.py

-=-
Modified: zc.buildout/branches/tlotze-download-api/src/zc/buildout/testing.py
===================================================================
--- zc.buildout/branches/tlotze-download-api/src/zc/buildout/testing.py	2009-05-27 16:55:54 UTC (rev 100480)
+++ zc.buildout/branches/tlotze-download-api/src/zc/buildout/testing.py	2009-05-27 17:05:33 UTC (rev 100481)
@@ -1,6 +1,6 @@
 #############################################################################
 #
-# Copyright (c) 2004 Zope Corporation and Contributors.
+# Copyright (c) 2004-2009 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -195,7 +195,7 @@
     while time.time() < deadline:
         if func(*args, **kw):
             return
-        time.sleep('.01')
+        time.sleep(0.01)
     raise ValueError('Timed out waiting for: '+label)
 
 def buildoutSetUp(test):



More information about the Checkins mailing list