diff Tools/scripts/patchcheck.py @ 71834:f1859c9d1086 3.2

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, 12 Aug 2011 17:50:08 +0200
parents 313a71664781
children fc5de19c66e2 d403eaec64df
line wrap: on
line diff
--- a/Tools/scripts/patchcheck.py	Fri Aug 12 17:40:25 2011 +0200
+++ b/Tools/scripts/patchcheck.py	Fri Aug 12 17:50:08 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__':