Permalink
Browse files

ENH: np.testing.decorators: Use Py3k compatible raise syntax

  • Loading branch information...
1 parent 143fb18 commit 18d6b8f4246ea1b3f5718283b57f41de6211c4e7 @bfroehle bfroehle committed Jul 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 numpy/testing/decorators.py
@@ -210,7 +210,7 @@ def knownfail_decorator(f):
from noseclasses import KnownFailureTest
def knownfailer(*args, **kwargs):
if fail_val():
- raise KnownFailureTest, msg
+ raise KnownFailureTest(msg)
else:
return f(*args, **kwargs)
return nose.tools.make_decorator(f)(knownfailer)

0 comments on commit 18d6b8f

Please sign in to comment.