diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-11-09 19:54:51 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-11-09 19:54:51 (GMT) |
commit | c579b35740573be48ba266b2965944d325174b57 (patch) | |
tree | cad8667f0d5e4b6f3b5f1b75f82c229e5a33fbb6 | |
parent | a8fd66d6aaea9cc0a1e7687b082e9fbf5da3cd74 (diff) | |
download | cpython-c579b35740573be48ba266b2965944d325174b57.zip cpython-c579b35740573be48ba266b2965944d325174b57.tar.gz cpython-c579b35740573be48ba266b2965944d325174b57.tar.bz2 |
Add extra information to a test_signal failure message to aid diagnosis of buildbot failure.
-rw-r--r-- | Lib/test/test_signal.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index c4b8e4e..466b9b6 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -367,7 +367,9 @@ class ItimerTest(unittest.TestCase): if signal.getitimer(self.itimer) == (0.0, 0.0): break # sig_vtalrm handler stopped this itimer else: - self.fail('timeout waiting for sig_vtalrm signal') + self.fail('timeout waiting for sig_vtalrm signal; ' + 'signal.getitimer(self.itimer) gives: %s' % + (signal.getitimer(self.itimer),)) # virtual itimer should be (0.0, 0.0) now self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0)) |