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

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


Bugs item #813159, was opened at 2003-09-26 11:37
Message generated for change (Comment added) made by rhettinger
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: Closed
>Resolution: Invalid
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: Raymond Hettinger (rhettinger)
Date: 2003-09-26 22:21

Message:
Logged In: YES 
user_id=80475

The current CVS shows that this has already been fixed. 

Thanks for the bug report.

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

Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-09-26 12: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