[Zodb-checkins] SVN: ZODB/branches/nikhil_n-py25/src/persistent/tests/testPersistent.py made persistent work with Python 2.5

nikhil n nikhil.n.n at gmail.com
Thu May 31 12:51:12 EDT 2007


Log message for revision 76051:
  made persistent work with Python 2.5

Changed:
  U   ZODB/branches/nikhil_n-py25/src/persistent/tests/testPersistent.py

-=-
Modified: ZODB/branches/nikhil_n-py25/src/persistent/tests/testPersistent.py
===================================================================
--- ZODB/branches/nikhil_n-py25/src/persistent/tests/testPersistent.py	2007-05-31 16:41:10 UTC (rev 76050)
+++ ZODB/branches/nikhil_n-py25/src/persistent/tests/testPersistent.py	2007-05-31 16:51:11 UTC (rev 76051)
@@ -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(AttributeError, setstate, GHOST)
+        self.assertRaises(AttributeError, setstate, UPTODATE)
+        self.assertRaises(AttributeError, setstate, CHANGED)
+        self.assertRaises(AttributeError, setstate, STICKY)
 
     def testInvalidate(self):
         obj = P()



More information about the Zodb-checkins mailing list