Commit 9456ba22 authored by Jim Fulton's avatar Jim Fulton

Updated to reflect exception differences between Python 2.4 and Python 2.5.

parent 6b4137ae
......@@ -161,10 +161,10 @@ class PersistenceTest(unittest.TestCase):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment