diff Tools/scripts/patchcheck.py @ 71960:11662a6e34df 2.7

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.
author Éric Araujo <merwok@netwok.org>
date Fri, 19 Aug 2011 08:41:00 +0200
parents bea11ce24bb0
children 179bc7557484
line wrap: on
line diff
--- a/Tools/scripts/patchcheck.py	Fri Aug 19 08:40:10 2011 +0200
+++ b/Tools/scripts/patchcheck.py	Fri Aug 19 08:41:00 2011 +0200
@@ -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__':