]> 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, 19 Aug 2011 06:41:00 +0000 (08:41 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 19 Aug 2011 06:41:00 +0000 (08:41 +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 1075dc267e74cc93ea43e35d1052f1e2de916b73..2834fefb23ea616f652f09564c44ab2d4c57d7a9 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__':