changeset 272:d68d83f42254

fixed unit test
author catherine@cordelia
date Wed, 29 Apr 2009 22:33:58 -0400
parents 194160b7f091
children fd5197498667
files cmd2.py setup.py
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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