[Zodb-checkins]
SVN: ZODB/trunk/src/persistent/tests/testPersistent.py
Updated to reflect exception differences between Python 2.4
and Python 2.5.
Jim Fulton
jim at zope.com
Mon Jun 25 11:18:48 EDT 2007
Log message for revision 77053:
Updated to reflect exception differences between Python 2.4 and Python 2.5.
Changed:
U ZODB/trunk/src/persistent/tests/testPersistent.py
-=-
Modified: ZODB/trunk/src/persistent/tests/testPersistent.py
===================================================================
--- ZODB/trunk/src/persistent/tests/testPersistent.py 2007-06-25 15:14:35 UTC (rev 77052)
+++ ZODB/trunk/src/persistent/tests/testPersistent.py 2007-06-25 15:18:48 UTC (rev 77053)
@@ -161,10 +161,10 @@
obj = P()
def setstate(value):
obj._p_state = value
- self.assertRaises(TypeError, setstate, GHOST)
- self.assertRaises(TypeError, setstate, UPTODATE)
- self.assertRaises(TypeError, setstate, CHANGED)
- self.assertRaises(TypeError, setstate, STICKY)
+ self.assertRaises(Exception, setstate, GHOST)
+ self.assertRaises(Exception, setstate, UPTODATE)
+ self.assertRaises(Exception, setstate, CHANGED)
+ self.assertRaises(Exception, setstate, STICKY)
def testInvalidate(self):
obj = P()
More information about the Zodb-checkins
mailing list