1 new commit in py:
https://bitbucket.org/hpk42/py/changeset/b092191fcb76/ changeset: b092191fcb76 user: gutworth date: 2011-12-19 17:50:31 summary: use an exception more consistent across python versions (fixes #11) affected #: 1 file diff -r 980c8d526463958ee7cae678a7e4e9b054f36b94 -r b092191fcb76d9b071f55e9eb19077284f47d100 testing/code/test_assertion.py --- a/testing/code/test_assertion.py +++ b/testing/code/test_assertion.py @@ -22,17 +22,14 @@ assert e.msg == 'hello' def test_assert_within_finally(): - class A: - def f(): - pass - excinfo = py.test.raises(TypeError, """ + excinfo = py.test.raises(ZeroDivisionError, """ try: - A().f() + 1/0 finally: i = 42 """) s = excinfo.exconly() - assert s.find("takes no argument") != -1 + assert py.std.re.search("division.+by zero", s) is not None #def g(): # A.f() Repository URL: https://bitbucket.org/hpk42/py/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn