--- a/Lib/test/test_fractions.py Thu Jun 09 15:52:31 2011 -0400 +++ b/Lib/test/test_fractions.py Fri Jun 10 00:17:15 2011 +0200 @@ -391,10 +391,8 @@ def testMixingWithDecimal(self): # Decimal refuses mixed arithmetic (but not mixed comparisons) - self.assertRaisesMessage( - TypeError, - "unsupported operand type(s) for +: 'Fraction' and 'Decimal'", - operator.add, F(3,11), Decimal('3.1415926')) + self.assertRaises(TypeError, operator.add, + F(3,11), Decimal('3.1415926')) def testComparisons(self): self.assertTrue(F(1, 2) < F(2, 3))