From: Éric Araujo Date: Fri, 12 Aug 2011 15:50:08 +0000 (+0200) Subject: patchcheck: don’t talk about the test suite when no code file were changed. X-Git-Tag: v3.2.2rc1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbc5ff6235e5fb53900d17f2bb69caec03240ba4;p=python 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. --- diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py index 9eb367defe..dc6b932fa2 100755 --- a/Tools/scripts/patchcheck.py +++ b/Tools/scripts/patchcheck.py @@ -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__':