[Python-bugs-list] [ python-Bugs-804115 ] bad argument
handling(unittest.py)
SourceForge.net
noreply at sourceforge.net
Thu Sep 11 18:11:40 EDT 2003
Bugs item #804115, was opened at 2003-09-10 20:19
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: bad argument handling(unittest.py)
Initial Comment:
_WritelnDecorator.writeln method handles arbitrary
number of argumetns badly.
In the following part,
def writeln(self, *args):
if args: self.write(*args)
since _WritelnDecorator's stream is by default
sys.stderr,
sys.stderr.write() takes exactly one argument.
If you give more than one argument to writeln
method,
TypeError is raised.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470
More information about the Python-bugs-list
mailing list