Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76558:016d3b84b7b0
Date: 2015-03-25 11:04 +0100
http://bitbucket.org/pypy/pypy/changeset/016d3b84b7b0/
Log: getsignalname(6) -> SIGABRT, not SIGIOT (strange synonym)
diff --git a/testrunner/runner.py b/testrunner/runner.py
--- a/testrunner/runner.py
+++ b/testrunner/runner.py
@@ -101,7 +101,9 @@
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,)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit