tests/run-tests.py
branchstable
changeset 989 52af2791a71e
parent 987 5fc540826f9f
child 996 dadecc4f3341
equal deleted inserted replaced
987:5fc540826f9f 989:52af2791a71e
   523 
   523 
   524 def transformtst(lines):
   524 def transformtst(lines):
   525     inblock = False
   525     inblock = False
   526     for l in lines:
   526     for l in lines:
   527         if inblock:
   527         if inblock:
   528             if l.startswith('  $ '):
   528             if l.startswith('  $ ') or not l.startswith('  '):
   529                 inblock = False
   529                 inblock = False
   530                 yield '  > EOF\n'
   530                 yield '  > EOF\n'
   531                 yield l
   531                 yield l
   532             else:
   532             else:
   533                 yield '  > ' + l[2:]
   533                 yield '  > ' + l[2:]