[Zodb-checkins] CVS: Zope3/src/ZODB/tests - test_cache.py:1.7

Marius Gedminas marius at pov.lt
Tue Apr 27 08:00:46 EDT 2004


Update of /cvs-repository/Zope3/src/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv15146/src/ZODB/tests

Modified Files:
	test_cache.py 
Log Message:
Made ZODB test_cache doctests clean up the transaction.



=== Zope3/src/ZODB/tests/test_cache.py 1.6 => 1.7 ===
--- Zope3/src/ZODB/tests/test_cache.py:1.6	Mon Apr 19 17:19:07 2004
+++ Zope3/src/ZODB/tests/test_cache.py	Tue Apr 27 08:00:44 2004
@@ -56,6 +56,10 @@
     def test_cache(self):
         r"""Test basic cache methods.
 
+        Let's start with a clean transaction
+
+        >>> transaction.abort()
+
         >>> RegularObject.init()
         >>> db = databaseFromString("<zodb>\n"
         ...                         "cache-size 4\n"
@@ -113,6 +117,10 @@
         1
         >>> RegularObject.deactivations
         10
+
+        Clean up
+
+        >>> transaction.abort()
 
         """
 




More information about the Zodb-checkins mailing list