Mercurial > kallithea
changeset 2556:60c48410996e beta
fixed nose_parametrized for py25 compat
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 06 Jul 2012 00:12:29 +0200 |
parents | b5c57e2176dc |
children | 1284b2eaade6 |
files | rhodecode/tests/nose_parametrized.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/tests/nose_parametrized.py Fri Jul 06 00:11:28 2012 +0200 +++ b/rhodecode/tests/nose_parametrized.py Fri Jul 06 00:12:29 2012 +0200 @@ -158,7 +158,7 @@ def assert_raises(func, exc_type, str_contains=None, repr_contains=None): try: func() - except exc_type as e: + except exc_type, e: if str_contains is not None and str_contains not in str(e): raise AssertionError("%s raised, but %r does not contain %r" % (exc_type, str(e), str_contains))