[Zope3-checkins] CVS: Zope3/src/zodb/tests - undo.py:1.1.2.2
Barry Warsaw
barry@wooz.org
Mon, 23 Dec 2002 16:53:25 -0500
Update of /cvs-repository/Zope3/src/zodb/tests
In directory cvs.zope.org:/tmp/cvs-serv14542/src/zodb/tests
Modified Files:
Tag: NameGeddon-branch
undo.py
Log Message:
Deunfrakificationlinessification
=== Zope3/src/zodb/tests/undo.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zodb/tests/undo.py:1.1.2.1 Mon Dec 23 14:30:52 2002
+++ Zope3/src/zodb/tests/undo.py Mon Dec 23 16:52:54 2002
@@ -3,7 +3,7 @@
import time
import unittest
-from zodb import POSException
+from zodb import interfaces
from zodb.ztransaction import Transaction
from zodb.utils import u64, p64, z64
from zodb.db import DB
@@ -53,7 +53,7 @@
get_transaction().commit()
self._conn.sync()
# XXX Should be a better exception?
- self.assertRaises(POSException.POSKeyError, getattr, obj, 'value')
+ self.assertRaises(interfaces.POSKeyError, getattr, obj, 'value')
# Recreate object by undoing the undo
info = self._db.undoInfo()
@@ -338,7 +338,7 @@
tid = info[1]['id']
t = Transaction()
self._storage.tpc_begin(t)
- self.assertRaises(POSException.UndoError,
+ self.assertRaises(interfaces.UndoError,
self._storage.transactionalUndo,
tid, t)
self._storage.tpc_abort(t)
@@ -377,7 +377,7 @@
tid = info[1]['id']
t = Transaction()
self._storage.tpc_begin(t)
- self.assertRaises(POSException.UndoError,
+ self.assertRaises(interfaces.UndoError,
self._storage.transactionalUndo,
tid, t)
self._storage.tpc_abort(t)