[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/historical_connections.txt Added a delay to deal with low time resolution on windows, which

Jim Fulton jim at zope.com
Wed Oct 29 15:41:50 EDT 2008


Log message for revision 92680:
  Added a delay to deal with low time resolution on windows, which
  addresses some of the windows errors. (I think the remaining failures
  here and in dbopen.txt have to do with the way time is used in
  management of available connections.)
  

Changed:
  U   ZODB/trunk/src/ZODB/historical_connections.txt

-=-
Modified: ZODB/trunk/src/ZODB/historical_connections.txt
===================================================================
--- ZODB/trunk/src/ZODB/historical_connections.txt	2008-10-29 18:21:44 UTC (rev 92679)
+++ ZODB/trunk/src/ZODB/historical_connections.txt	2008-10-29 19:41:48 UTC (rev 92680)
@@ -41,7 +41,15 @@
     
     >>> import transaction
     >>> transaction.commit()
+
+We wait for some ttime to pass, and then make some other changes.
     
+    >>> import time
+    >>> t = time.time()
+    >>> while time.time <= t:
+    ...     time.sleep(.001)    
+
+
     >>> import datetime
     >>> now = datetime.datetime.utcnow()
     
@@ -403,4 +411,4 @@
     ...     transaction_manager=transaction1, at=now, before=historical_serial)
     Traceback (most recent call last):
     ...
-    ValueError: can only pass zero or one of `at` and `before`
\ No newline at end of file
+    ValueError: can only pass zero or one of `at` and `before`



More information about the Zodb-checkins mailing list