[Zope-Checkins] CVS: Zope3/lib/python/ZODB/tests - ReadOnlyStorage.py:1.2.14.2

Jeremy Hylton jeremy@zope.com
Fri, 29 Mar 2002 17:24:00 -0500


Update of /cvs-repository/Zope3/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv23621

Modified Files:
      Tag: Zope-3x-branch
	ReadOnlyStorage.py 
Log Message:
Remove support for old-style undo().

Transactional undo is preferred in Zope 2.5 and up.  For Zope3,
transactional undo will be the only undo.  Also simplify
implementation of undoInfo() and undoLog().  undoInfo() is preferred
for all uses.  To the extent that undoLog() remains, it is a helper to
implement undoInfo().

Remove undo() from ReadOnlyStorage tests, since it isn't part of the
API anymore.


=== Zope3/lib/python/ZODB/tests/ReadOnlyStorage.py 1.2.14.1 => 1.2.14.2 ===
         self._make_readonly()
         self.assertRaises(ReadOnlyError, self._storage.new_oid)
-        self.assertRaises(ReadOnlyError, self._storage.undo,
-                          '\000' * 8)
 
         t = Transaction()
         self._storage.tpc_begin(t)