]> granicus.if.org Git - python/commit
Christmas present to myself: changed regrtest in two ways:
authorTim Peters <tim.peters@gmail.com>
Sat, 30 Dec 2000 22:21:22 +0000 (22:21 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 30 Dec 2000 22:21:22 +0000 (22:21 +0000)
commit1a4d77b2527ced1052b4faae3d176b125a764325
tree9e85ea0c2087689197cade1dbcb0a0ae7a14bf8a
parent52328165c52d775d336968b40da9619f5f7f677a
Christmas present to myself:  changed regrtest in two ways:
1. When running in verbose mode, if any test happens to pass, print
   a warning that the apparent success may be bogus (stdout isn't
   compared in verbose mode).  Been fooled by that too often.
2. When a test fails because the expected stdout doesn't match the
   actual stdout, print as much of stdout as did match before the
   first failing write.  Else we get failures of the form "expected
   'a', got 'b'" and a glance at the expected output file shows
   500 instances of 'a' -- no idea where it failed, and, as in #1,
   trying to run in verbose mode instead doesn't help because
   stdout isn't compared then.
Lib/test/regrtest.py