[Python-bugs-list] [ python-Bugs-631713 ] test_frozen contains illegal raise stmts

noreply@sourceforge.net noreply@sourceforge.net
Fri, 01 Nov 2002 02:14:58 -0800


Bugs item #631713, was opened at 2002-10-31 19:06
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=631713&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 2
Submitted By: Finn Bock (bckfnn)
>Assigned to: Finn Bock (bckfnn)
Summary: test_frozen contains illegal raise stmts

Initial Comment:
The tests in test_frozen attempts to raise an exeption
with a 3. argument that isn't a traceback obj (or none):

try:
    import __hello__
except ImportError, x:
    raise TestFailed, "import __hello__ failed:", x

If the import fails (for some reason) the TestFailed
exception isn't raised but TypeError is raised instead:

TypeError: raise: arg 3 must be a traceback or None



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

>Comment By: Michael Hudson (mwh)
Date: 2002-11-01 10:14

Message:
Logged In: YES 
user_id=6656

You're right.  Just fix it, please!

I'm guessing it should be

raise TestFailed("import __hello__ failed:", x)

or something, but I don't think it's that important

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

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