Mercurial > sqlpython
changeset 172:78ae062a1173
tests close to working, except for stderr?
author | catherine@dellzilla |
---|---|
date | Thu, 23 Oct 2008 14:35:21 -0400 |
parents | d6652b33ce53 |
children | f5a1d7e7bd59 |
files | sqlpython/test_sqlpyPlus.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()