[Python-bugs-list] [ python-Bugs-467763 ] test_support's run_suite() is broken

noreply@sourceforge.net noreply@sourceforge.net
Thu, 04 Oct 2001 12:46:22 -0700


Bugs item #467763, was opened at 2001-10-03 23:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467763&group_id=5470

Category: Python Library
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Tim Peters (tim_one)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: test_support's run_suite() is broken

Initial Comment:
When test_support.run_suite() runs a failing test, in 
one of the failure branches it can reference 
vrbl "testclass" twice.  But testclass is an argument 
to run_unittest(), and has no value in run_suite().  
So run_suite() dies with a NameError, instead of 
raising TestFailed.

Assigned to Fred, because I vaguely believe he made 
the change so has a good chance of guessing what he 
intended to do instead <wink>.

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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-10-04 12:46

Message:
Logged In: YES 
user_id=3066

Sorry, run_suite() wasn't mine, though I've used it.
Fixed in Lib/test/test_support.py revision 1.39.

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

Comment By: Tim Peters (tim_one)
Date: 2001-10-03 23:34

Message:
Logged In: YES 
user_id=31435

Changed Group to Python 2.2.

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

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