[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/Connection.py use "import time" so we can mess with time.time in tests.

Jim Fulton jim at zope.com
Thu Dec 4 17:15:41 EST 2008


Log message for revision 93634:
  use "import time" so we can mess with time.time in tests.
  

Changed:
  U   ZODB/trunk/src/ZODB/Connection.py

-=-
Modified: ZODB/trunk/src/ZODB/Connection.py
===================================================================
--- ZODB/trunk/src/ZODB/Connection.py	2008-12-04 22:15:37 UTC (rev 93633)
+++ ZODB/trunk/src/ZODB/Connection.py	2008-12-04 22:15:41 UTC (rev 93634)
@@ -22,7 +22,7 @@
 import warnings
 import os
 import shutil
-from time import time
+import time
 
 from persistent import PickleCache
 
@@ -1010,7 +1010,7 @@
         register for afterCompletion() calls.
         """
 
-        self._opened = time()
+        self._opened = time.time()
 
         if transaction_manager is None:
             transaction_manager = transaction.manager



More information about the Zodb-checkins mailing list