# HG changeset patch # User catherine@dellzilla # Date 1224786921 14400 # Node ID 78ae062a1173fb22373eb9bec8a0369dc1c99e5d # Parent d6652b33ce53ffdce8ab3b2523de326a4f2c7638 tests close to working, except for stderr? diff -r d6652b33ce53 -r 78ae062a1173 sqlpython/test_sqlpyPlus.py --- a/sqlpython/test_sqlpyPlus.py Thu Oct 23 14:28:03 2008 -0400 +++ b/sqlpython/test_sqlpyPlus.py Thu Oct 23 14:35:21 2008 -0400 @@ -10,8 +10,8 @@ return obj class OutputTrap(Borg): + old_stdout = sys.stdout def __init__(self): - self.old_stdout = sys.stdout self.trap = tempfile.TemporaryFile() def dump(self): self.trap.seek(0) @@ -45,7 +45,7 @@ def testall(self): for directive in self.directives: (command, result) = directive.groups() - command = command.replace(self.commandCleaner, '') + command = command.replace(self.commandCleaner, '\n') self.assertOutput(command, result, lineNum=self.transcript.count('\n', 0, directive.start())) def tearDown(self): self.outputTrap.teardown()