# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1224781503 14400 # Node ID 1e0e769ced2e40d48a42a68f61a40fa2da31c29c # Parent 1736fd6ae3e883ca0f839ea41c6ec1aa90b29211 must discard old output for each new test diff -r 1736fd6ae3e8 -r 1e0e769ced2e sqlpython/test_sqlpyPlus.py --- a/sqlpython/test_sqlpyPlus.py Wed Oct 22 22:59:47 2008 -0400 +++ b/sqlpython/test_sqlpyPlus.py Thu Oct 23 13:05:03 2008 -0400 @@ -13,7 +13,9 @@ self.testsession.onecmd(commandtext) falseStdOut.seek(0) result = falseStdOut.read() - self.assertEqual(expected, result) + falseStdOut.close() + falseStdOut = tempfile.TemporaryFile() + self.assertEqual(expected.strip(), result.strip()) def testall(self): for directive in self.directives: (command, result) = directive.groups() diff -r 1736fd6ae3e8 -r 1e0e769ced2e sqlpython/test_sqlpyPlus.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sqlpython/test_sqlpyPlus.txt Thu Oct 23 13:05:03 2008 -0400 @@ -0,0 +1,58 @@ +testdata@orcl> select * from species; + +ID NAME +-- ------ + 0 turtle + 1 python + 2 parrot + +3 rows selected. + +testdata@orcl> select * +> from species; + +ID NAME +-- ------ + 0 turtle + 1 python + 2 parrot + +3 rows selected. + +testdata@orcl> select * from species\h + + + +
++ id + | + name + | +
---|---|
+ 0 + | + turtle + | +
+ 1 + | + python + | +