Author ajaksu2
Recipients ajaksu2, facundobatista, theller
Date 2008-04-02.18:37:42
SpamBayes Score 0.255093
Marked as misclassified No
Message-id <1207161463.53.0.473940633223.issue2534@psf.upfronthosting.co.za>
In-reply-to
Content
The test fails on this:

def g():
    try:
        return g()
    except ValueError:
        return -1
self.assertRaises(RuntimeError, g)


Changing that "return -1" to "return sys.exc_info()" shows that a
RuntimeError was raised indeed. Also, using TypeError or TabError
instead of ValueError gives the same result.

Shallow testing of the new methods seem to show normal results,

[Runtime,Value]Error.__[subclass,instance]check__([Runtime,Value]Error)

is False for cross-checks and True otherwise.
History
Date User Action Args
2008-04-02 18:37:43ajaksu2setspambayes_score: 0.255093 -> 0.255093
recipients: + ajaksu2, theller, facundobatista
2008-04-02 18:37:43ajaksu2setspambayes_score: 0.255093 -> 0.255093
messageid: <1207161463.53.0.473940633223.issue2534@psf.upfronthosting.co.za>
2008-04-02 18:37:42ajaksu2linkissue2534 messages
2008-04-02 18:37:42ajaksu2create