SVN: ZODB/trunk/src/ZEO/tests/testZEO2.py Need to call set_sender on tpc_finish result to get proper cleanup

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
Log message for revision 108800:
  
  Need to call set_sender on tpc_finish result to get proper cleanup
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/testZEO2.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO2.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO2.py	2010-02-05 21:50:40 UTC (rev 108799)
+++ ZODB/trunk/src/ZEO/tests/testZEO2.py	2010-02-05 21:51:23 UTC (rev 108800)
@@ -111,7 +111,7 @@
 def proper_handling_of_errors_in_restart():
     r"""
 
-It's critical that if there is an error in _restart (ie vote) that the
+It's critical that if there is an error in vote that the
 storage isn't left in tpc.
 
     >>> fs = ZODB.FileStorage.FileStorage('t.fs', blob_dir='t.blobs')
@@ -150,8 +150,7 @@
     >>> _ = zs1.vote('1') # doctest: +ELLIPSIS
     1 callAsync serialnos ...
 
-    >>> zs1.tpc_finish('1') is not None
-    True
+    >>> zs1.tpc_finish('1').set_sender(0, conn1)
 
     >>> fs.close()
     """
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.