Issue 1470459: fix test_exceptions in p3yk (original) (raw)

Issue1470459

Created on 2006-04-14 17:15 by twouters, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
p3yk.exceptions.diff twouters,2006-04-14 17:15
Messages (2)
msg49994 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2006-04-14 17:15
Fixes test_exceptions in p3yk, by making the test exception inherit from Exception. Also fixes PyErr_SetObject() to only set proper exceptions (meaning subclasses of BaseException.) It raises (somewhat arbitrarily) SystemError when the C API tries to raise an invalid exception. Added a test for that behaviour to test_exceptions, too.
msg49995 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2006-04-20 23:28
Logged In: YES user_id=34209 Checked this in.
History
Date User Action Args
2022-04-11 14:56:16 admin set github: 43205
2008-01-06 22:29:46 admin set keywords: - py3kversions: + Python 3.0
2006-04-14 17:15:13 twouters create