Ticket #6161 defect closed fixed
twisted.internet.test.test_sigchld way too aggressive in assuming no previous fd or SIGCHLD handler was installed
| Reported by: | itamar | Owned by: | itamar |
|---|---|---|---|
| Priority: | normal | Milestone: | Python 3.3 Minimal |
| Component: | core | Keywords: | |
| Cc: | Branch: | branches/sigchld-tests-6161 | |
| Author: | itamarst | Launchpad Bug: |
Description
twisted.internet.test.test_sigchld.SetWakeupSIGCHLDTests.setUp assumes no one has previously set a SIGCHLD handler or registered a wakeup fd. If someone has, that is considered an error. However, any random test that uses the reactor will cause this registration; AFAICT this never caused problems before due to a specific sort order of running tests.
On Ubuntu 12.10:
$ trial -z 1 twisted.test.test_udp twisted.internet.test.test_sigchld
...
[ERROR]
Traceback (most recent call last):
File "/home/itamarst/Devel/Twisted/trunk/twisted/internet/test/test_sigchld.py", line 58, in setUp
raise RuntimeError("You used some signal APIs wrong! Try again.")
exceptions.RuntimeError: You used some signal APIs wrong! Try again.
twisted.internet.test.test_sigchld.SetWakeupSIGCHLDTests.test_uninstallHandler
Change History
Note: See
TracTickets for help on using
tickets.
