[Python-bugs-list] [ python-Bugs-813159 ] duplicated return statement in unittest.py

SourceForge.net noreply at sourceforge.net
Fri Sep 26 13:34:21 EDT 2003


Bugs item #813159, was opened at 2003-09-27 02:37
Message generated for change (Comment added) made by anthonybaxter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=813159&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
>Assigned to: Steve Purcell (purcell)
Summary: duplicated return statement in unittest.py

Initial Comment:
After Steve Purcell's recent commit to unittest.py

(Revision 1.27), TestLoader.loadTestsFromName 

has a duplicated return statement.



        elif type(obj) == types.UnboundMethodType:

            return parent(obj.__name__)

            return obj.im_class(obj.__name__)

        elif isinstance(obj, unittest.TestSuite):



Somehow it doesn't raise SyntaxError, but I think it 

needs to be fixed.

obj.im_class(obj.__name__) is never returned.



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

>Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-09-27 03:34

Message:
Logged In: YES 
user_id=29957

Assigning to Steve Purcell, the author of the patch.



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

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



More information about the Python-bugs-list mailing list