Mercurial > sqlpython
changeset 173:f5a1d7e7bd59
must give up on parsing the transcript with regex
author | catherine@dellzilla |
---|---|
date | Thu, 23 Oct 2008 15:14:46 -0400 |
parents | 78ae062a1173 |
children | 76737c0535b8 |
files | sqlpython/test_sqlpyPlus.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()