[Patches] [ python-Patches-1470459 ] fix test_exceptions in p3yk

SourceForge.net noreply at sourceforge.net
Fri Apr 21 01:28:10 CEST 2006


Patches item #1470459, was opened at 2006-04-14 19:15
Message generated for change (Comment added) made by twouters
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1470459&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 3000
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Thomas Wouters (twouters)
Assigned to: Guido van Rossum (gvanrossum)
Summary: fix test_exceptions in p3yk

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Thomas Wouters (twouters)
Date: 2006-04-21 01:28

Message:
Logged In: YES 
user_id=34209

Checked this in.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1470459&group_id=5470


More information about the Patches mailing list