summaryrefslogtreecommitdiff
path: root/Tools/scripts/patchcheck.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-12 17:50:08 +0200
committerÉric Araujo <merwok@netwok.org>2011-08-12 17:50:08 +0200
commita81b8aa42c3fdd4437a033589f6642c3241d6eee (patch)
tree6dd564e7945413261651477894819c257b20f78b /Tools/scripts/patchcheck.py
parentc0b2a05bd9bd69f2136c2e7e05eaccfad140fde5 (diff)
downloadcpython-a81b8aa42c3fdd4437a033589f6642c3241d6eee.tar.gz
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.
Diffstat (limited to 'Tools/scripts/patchcheck.py')
-rwxr-xr-xTools/scripts/patchcheck.py5
1 files changed, 3 insertions, 2 deletions
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__':