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

eric.araujo python-checkins at python.org
Fri Aug 12 18:04:02 CEST 2011


http://hg.python.org/cpython/rev/f1859c9d1086
changeset:   71834:f1859c9d1086
branch:      3.2
user:        Éric Araujo <merwok at netwok.org>
date:        Fri Aug 12 17:50:08 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