--- a/Lib/test/test_fractions.py Fri Jun 17 21:10:21 2011 +0200 +++ b/Lib/test/test_fractions.py Sat Jun 18 13:21:59 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))