Message135539
| Author |
vstinner |
| Recipients |
benjamin.peterson, exarkun, gregory.p.smith, loewis, marcin.bachry, neologix, pitrou, python-dev, schmichael, spiv, tseaver, vstinner |
| Date |
2011年05月08日.19:50:43 |
| SpamBayes Score |
1.0451084e-12 |
| Marked as misclassified |
No |
| Message-id |
<1304884244.41.0.634670857395.issue8407@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> New changeset f8c49a930015 by Victor Stinner in branch 'default':
> Issue #8407: The signal handler writes the signal number as a single byte
Wakeup test using two pending signals fails on FreeBSD 6.4 buildbot:
======================================================================
FAIL: test_signum (test.test_signal.WakeupSignalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_signal.py", line 266, in test_signum
self.check_signum(signal.SIGUSR1, signal.SIGALRM)
File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_signal.py", line 232, in check_signum
self.assertSequenceEqual(raised, signals)
AssertionError: Sequences differ: (14,) != (30, 14)
Wakeup file only contains SIGALRM, not (SIGUSR1, SIGALRM), whereas SIGUSR1 is raised before SIGALRM.
Code of the test:
def check_signum(self, *signals):
data = os.read(self.read, len(signals)+1)
raised = struct.unpack('%uB' % len(data), data)
self.assertSequenceEqual(raised, signals)
def test_signum(self):
old_handler = signal.signal(signal.SIGUSR1, lambda x,y:None)
self.addCleanup(signal.signal, signal.SIGUSR1, old_handler)
os.kill(os.getpid(), signal.SIGUSR1)
os.kill(os.getpid(), signal.SIGALRM)
self.check_signum(signal.SIGUSR1, signal.SIGALRM) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月08日 19:50:44 | vstinner | set | recipients:
+ vstinner, loewis, gregory.p.smith, spiv, exarkun, tseaver, pitrou, benjamin.peterson, marcin.bachry, schmichael, neologix, python-dev |
| 2011年05月08日 19:50:44 | vstinner | set | messageid: <1304884244.41.0.634670857395.issue8407@psf.upfronthosting.co.za> |
| 2011年05月08日 19:50:43 | vstinner | link | issue8407 messages |
| 2011年05月08日 19:50:43 | vstinner | create |
|