-
Committer:
John Arbash Meinel
-
Date:
2007-06-29 15:41:56 UTC
-
mto:
This revision was merged to the branch mainline in
revision
2614.
-
Revision ID:
john@arbash-meinel.com-20070629154156-qqtkp5u94qiwl5ua
Workaround for Pyrex <0.9.5 and python >=2.5 incompatibilities.
Before raising an exception, Pyrex checks that it is a valid exception object.
However python 2.5 changed exceptions to be new-style classes, and this
fails the Pyrex 0.9.4 check. Pyrex 0.9.5 has been updated to do it
correctly.
We just set knownFailure in the test suite when this happens.
Note: You still get an exception, just TypeError instead of ValueError or IndexError.
So the code path will still abort, but the user won't get as nice of a message.