]> granicus.if.org Git - python/commitdiff
patchcheck: don’t talk about the test suite when no code file were changed.
authorÉric Araujo <merwok@netwok.org>
Fri, 12 Aug 2011 15:50:08 +0000 (17:50 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 12 Aug 2011 15:50:08 +0000 (17:50 +0200)
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.

Tools/scripts/patchcheck.py

index 9eb367defe3aeace94ef31a84e198ddfa60dda01..dc6b932fa2df2f8baf1782619ada74282499d2c2 100755 (executable)
@@ -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__':