From: Éric Araujo Date: Fri, 19 Aug 2011 06:41:00 +0000 (+0200) Subject: patchcheck: don’t talk about the test suite when no code file were changed. X-Git-Tag: v2.7.3rc1~503^2^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5afa4955dfd4ed63485b049874442016245c72e;p=thirdparty%2FPython%2Fcpython.git patchcheck: don’t talk about the test suite when no code file were changed. The line about the test suite will still get printed for changes in Tools for example, which aren’t covered by the test suite, but it’s not a big deal IMO. --- diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py index 1075dc267e74..2834fefb23ea 100755 --- a/Tools/scripts/patchcheck.py +++ b/Tools/scripts/patchcheck.py @@ -157,8 +157,9 @@ def main(): reported_news(special_files) # Test suite run and passed. - print - print "Did you run the test suite?" + if python_files or c_files: + print + print "Did you run the test suite?" if __name__ == '__main__':