# HG changeset patch # User catherine@dellzilla # Date 1224789286 14400 # Node ID f5a1d7e7bd592ddfb20331050def5967c6916030 # Parent 78ae062a1173fb22373eb9bec8a0369dc1c99e5d must give up on parsing the transcript with regex diff -r 78ae062a1173 -r f5a1d7e7bd59 sqlpython/test_sqlpyPlus.py --- a/sqlpython/test_sqlpyPlus.py Thu Oct 23 14:35:21 2008 -0400 +++ b/sqlpython/test_sqlpyPlus.py Thu Oct 23 15:14:46 2008 -0400 @@ -13,17 +13,19 @@ old_stdout = sys.stdout def __init__(self): self.trap = tempfile.TemporaryFile() + sys.stdout = self.trap def dump(self): self.trap.seek(0) result = self.trap.read() self.trap.close() self.trap = tempfile.TemporaryFile() + sys.stdout = self.trap return result def teardown(self): sys.stdout = self.old_stdout class TestSqlPyPlus(unittest.TestCase): - transcriptReader = re.compile('testdata@eqdev> (.*?)\n\n(.*?)(?=testdata@eqdev>)', re.DOTALL) + transcriptReader = re.compile('testdata@eqdev> (.*?)\n(.*?)(?=testdata@eqdev>)', re.DOTALL) transcriptFileName = 'test_sqlpyPlus.txt' def setUp(self): self.outputTrap = OutputTrap()