[Python-checkins] cpython (2.7): patchcheck: don’t talk about the test suite when no code file were changed.

eric.araujo python-checkins at python.org
Fri Aug 19 14:28:15 CEST 2011


http://hg.python.org/cpython/rev/11662a6e34df
changeset:   71960:11662a6e34df
branch:      2.7
user:        Éric Araujo <merwok at netwok.org>
date:        Fri Aug 19 08:41:00 2011 +0200
summary:
  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.

files:
  Tools/scripts/patchcheck.py |  5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py
--- a/Tools/scripts/patchcheck.py
+++ b/Tools/scripts/patchcheck.py
@@ -157,8 +157,9 @@
     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__':

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list