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

SourceForge.net noreply at sourceforge.net
Fri Sep 12 22:59:34 EDT 2003


Bugs item #804115, was opened at 2003-09-10 20:19
Message generated for change (Comment added) 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: Closed
>Resolution: Fixed
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.

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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-09-12 21:59

Message:
Logged In: YES 
user_id=80475

Fixed.

See Lib/unittest.py 1.25 and 1.24.6.1

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

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