summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-19 06:41:00 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-19 06:41:00 (GMT)
commita5afa4955dfd4ed63485b049874442016245c72e (patch)
tree626220b40360849a7b4c9299ef8c3e5e4a2f8ea7
parentfe5c297ee2cc324ab0810e944ae36e6ed8f6b30d (diff)
downloadcpython-a5afa4955dfd4ed63485b049874442016245c72e.zip
cpython-a5afa4955dfd4ed63485b049874442016245c72e.tar.gz
cpython-a5afa4955dfd4ed63485b049874442016245c72e.tar.bz2
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.
-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 1075dc2..2834fef 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__':