diff tests/test-run-tests.t @ 15434:5635a4017061

run-tests: replace inline python handling with more native scheme Normally changes in tests are reported like this in diffs: $ cat foo - a + b Using -i mode lets us update tests when the new results are correct and/or populate tests with their output. But with the standard doctest framework, inline Python sections in tests changes instead result in a big failure report that's unhelpful. So here, we replace the doctest calls with a simple compile/eval loop.
author Matt Mackall <mpm@selenic.com>
date Mon, 07 Nov 2011 13:46:41 -0600
parents f30c0a7b8346
children f8955a7f82e6
line wrap: on
line diff
--- a/tests/test-run-tests.t	Mon Nov 07 13:46:39 2011 -0600
+++ b/tests/test-run-tests.t	Mon Nov 07 13:46:41 2011 -0600
@@ -16,6 +16,11 @@
   $ foo
   bar
 
+Return codes before inline python:
+
+  $ false
+  [1]
+
 Doctest commands:
 
   >>> print 'foo'
@@ -28,7 +33,7 @@
   y
   z
   >>> print
-  <BLANKLINE>
+  
 
 Regular expressions: