[Python-bugs-list] [ python-Bugs-804115 ] bad argument handling(unittest.py)

SourceForge.net noreply at sourceforge.net
Wed Sep 10 19:19:45 EDT 2003


Bugs item #804115, was opened at 2003-09-11 10:19
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=804115&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: 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