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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 01 Nov 2002 03:34:18 -0800


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

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
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: Finn Bock (bckfnn)
Date: 2002-11-01 12:34

Message:
Logged In: YES 
user_id=4201

Fixed in test_frozen.py: 1.3;

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

Comment By: Michael Hudson (mwh)
Date: 2002-11-01 11: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