details: http://hg.sympy.org/sympy/rev/d7c2888fcea0 changeset: 1811:d7c2888fcea0 user: Ondrej Certik <[EMAIL PROTECTED]> date: Fri Oct 17 16:24:26 2008 +0200 description: BaseException.message is deprecated. Fixed.
One should use str(e) instead of e.message. diffs (16 lines): diff -r e821b980db2d -r d7c2888fcea0 sympy/utilities/tests/test_pytest.py --- a/sympy/utilities/tests/test_pytest.py Fri Oct 17 15:48:23 2008 +0200 +++ b/sympy/utilities/tests/test_pytest.py Fri Oct 17 16:24:26 2008 +0200 @@ -9,10 +9,10 @@ raises(My, "1+1") assert False except Exception, e: - assert e.message == "DID NOT RAISE" + assert str(e) == "DID NOT RAISE" try: raises(My, "raise Exception('my text123')") assert False except Exception, e: - assert e.message == "my text123" + assert str(e) == "my text123" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-commits" group. To post to this group, send email to sympy-commits@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy-commits?hl=en -~----------~----~----~----~------~----~------~--~---