aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-03-25 11:04:49 +0100
committerArmin Rigo <arigo@tunes.org>2015-03-25 11:04:49 +0100
commitfcad4bbf1a6c4ee1108ddd94d7f1e9c44a5f4bb1 (patch)
tree6be115ef470982239122a4edf6a24d33e7f9ad11 /testrunner
parentissue2007: Ensure that all codecs decode() functions can accept a bytearray. (diff)
downloadpypy-fcad4bbf1a6c4ee1108ddd94d7f1e9c44a5f4bb1.tar.gz
pypy-fcad4bbf1a6c4ee1108ddd94d7f1e9c44a5f4bb1.tar.bz2
pypy-fcad4bbf1a6c4ee1108ddd94d7f1e9c44a5f4bb1.zip
getsignalname(6) -> SIGABRT, not SIGIOT (strange synonym)
Diffstat (limited to 'testrunner')
-rw-r--r--testrunner/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testrunner/runner.py b/testrunner/runner.py
index a1067cb04c..19ba78b976 100644
--- a/testrunner/runner.py
+++ b/testrunner/runner.py
@@ -101,7 +101,9 @@ def dry_run(args, cwd, out, timeout=None):
return 0
def getsignalname(n):
- for name, value in signal.__dict__.items():
+ # "sorted()" to pick a deterministic answer in case of synonyms.
+ # Also, getting SIGABRT is more understandable than SIGIOT...
+ for name, value in sorted(signal.__dict__.items()):
if value == n and name.startswith('SIG'):
return name
return 'signal %d' % (n,)