[Python-bugs-list] [ python-Bugs-813159 ] duplicated return
statement in unittest.py
SourceForge.net
noreply at sourceforge.net
Fri Sep 26 12:37:28 EDT 2003
Bugs item #813159, was opened at 2003-09-27 01:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
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