# HG changeset patch # User catherine@cordelia # Date 1241058838 14400 # Node ID d68d83f4225470108002095f4a030ee73bcbddbb # Parent 194160b7f0911913c27926c832ccfe6e0e40b0f0 fixed unit test diff -r 194160b7f091 -r d68d83f42254 cmd2.py --- a/cmd2.py Wed Apr 08 18:27:46 2009 -0400 +++ b/cmd2.py Wed Apr 29 22:33:58 2009 -0400 @@ -26,7 +26,7 @@ import unittest, string, datetime, urllib, glob from code import InteractiveConsole, InteractiveInterpreter, softspace from optparse import make_option -__version__ = '0.5.2' +__version__ = '0.5.3' class OptionParser(optparse.OptionParser): def exit(self, status=0, msg=None): @@ -319,6 +319,7 @@ def __init__(self, *args, **kwargs): cmd.Cmd.__init__(self, *args, **kwargs) + self.initial_stdout = sys.stdout self.history = History() self._init_parser() self.pystate = {} @@ -475,8 +476,8 @@ - terminator: ; - terminator: ; >>> print c.parser.parseString('multiline command /* with comment in progress;').dump() - ['multiline', ' command /* with comment in progress;'] - - multilineCommand: multiline + ['multiline', ' command'] + - multilineCommand: multiline >>> print c.parser.parseString('multiline command /* with comment complete */ is done;').dump() ['multiline', 'command /* with comment complete */ is done', ';', ''] - args: command /* with comment complete */ is done diff -r 194160b7f091 -r d68d83f42254 setup.py --- a/setup.py Wed Apr 08 18:27:46 2009 -0400 +++ b/setup.py Wed Apr 29 22:33:58 2009 -0400 @@ -3,7 +3,7 @@ setup( name="cmd2", - version="0.5.2", + version="0.5.3", py_modules=["cmd2",], # metadata for upload to PyPI