[Zodb-checkins] SVN: ZODB/branches/3.8/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:00:09 EDT 2007


Log message for revision 77045:
  Updated to reflect exception differences between Python 2.4 and Python 2.5.
  

Changed:
  U   ZODB/branches/3.8/src/persistent/tests/testPersistent.py

-=-
Modified: ZODB/branches/3.8/src/persistent/tests/testPersistent.py
===================================================================
--- ZODB/branches/3.8/src/persistent/tests/testPersistent.py	2007-06-25 14:32:12 UTC (rev 77044)
+++ ZODB/branches/3.8/src/persistent/tests/testPersistent.py	2007-06-25 15:00:09 UTC (rev 77045)
@@ -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