run-tests: end doctest block when seeing a non-command stable
authorIdan Kamara <idankk86@gmail.com>
Thu, 13 Oct 2011 17:54:37 +0200
branchstable
changeset 989 52af2791a71e
parent 987 5fc540826f9f
child 990 ab082912af32
child 991 68475648cd7e
run-tests: end doctest block when seeing a non-command [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Wed Oct 12 22:01:14 2011 +0200
+++ b/tests/run-tests.py	Thu Oct 13 17:54:37 2011 +0200
@@ -525,7 +525,7 @@
     inblock = False
     for l in lines:
         if inblock:
-            if l.startswith('  $ '):
+            if l.startswith('  $ ') or not l.startswith('  '):
                 inblock = False
                 yield '  > EOF\n'
                 yield l