Mercurial > public > mercurial-scm > hg-stable
diff tests/test-check-code.t @ 19422:d9e86d656017
check-code: automatically preppend "warning: " to all warning messages
Some warnings had "warning: " at the beginning of their message. Now this
is done consistent for all messages.
Especially in test-check-code-hg.t it is an advantage to see warnings at once
because only exceptions to them are tolerated. It is (almost) as obvious as
before a6180647ea.
The prefix will not remain when a warning is changed to a failure. A change
like a91387a37f will not be necessary anymore.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Tue, 16 Jul 2013 01:29:14 +0200 |
parents | a91387a37f05 |
children | 3119dc155ac2 |
line wrap: on
line diff
--- a/tests/test-check-code.t Wed Jul 17 10:49:34 2013 +0200 +++ b/tests/test-check-code.t Tue Jul 16 01:29:14 2013 +0200 @@ -172,6 +172,16 @@ naked except clause [1] + $ cat > warning.t <<EOF + > $ function warnonly { + > > } + > EOF + $ "$check_code" warning.t + $ "$check_code" --warn warning.t + warning.t:1: + > $ function warnonly { + warning: don't use 'function', use old style + [1] $ cat > raise-format.py <<EOF > raise SomeException, message > # this next line is okay