This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年07月30日 16:37 by twouters, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| inthandler.patch | twouters, 2012年07月31日 00:24 | review | ||
| Messages (6) | |||
|---|---|---|---|
| msg166910 - (view) | Author: Thomas Wouters (twouters) * (Python committer) | Date: 2012年07月30日 16:37 | |
unittest.installHandler incorrectly assumes signal.SIGINT will always be set to a callable object, rather than signal.SIG_DFL or signal.SIG_IGN. This breaks if the test is being executed in an environment that e.g. ignores signal.SIGINT, like a bash script that executes 'make' in a subshell, because an attempt to call the original handler (for whatever reason) causes it to try and call an integer. On top of that, the *tests* for unittest.installHandler in unittest/tests/test_break.py assume not just that signal.SIGINT is set to a callable object, but that they're set to signal.default_int_handler. |
|||
| msg166916 - (view) | Author: Thomas Wouters (twouters) * (Python committer) | Date: 2012年07月30日 18:00 | |
Patch attached. |
|||
| msg166937 - (view) | Author: Thomas Wouters (twouters) * (Python committer) | Date: 2012年07月31日 00:24 | |
Updated patch. |
|||
| msg180946 - (view) | Author: Thomas Wouters (twouters) * (Python committer) | Date: 2013年01月29日 20:43 | |
ping (you know why :) |
|||
| msg180955 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年01月29日 22:59 | |
New changeset 7e4c5914ba76 by Michael Foord in branch '2.7': Issue 15505. unittest.installHandler and non callable signal handlers http://hg.python.org/cpython/rev/7e4c5914ba76 |
|||
| msg180956 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年01月29日 23:08 | |
New changeset 48c5c632d212 by Michael Foord in branch '3.2': Closes issue 15505. unittest.installHandler and non-callable signal handlers. http://hg.python.org/cpython/rev/48c5c632d212 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:33 | admin | set | github: 59710 |
| 2013年01月29日 23:08:14 | python-dev | set | status: open -> closed resolution: fixed messages: + msg180956 stage: patch review -> resolved |
| 2013年01月29日 22:59:06 | python-dev | set | nosy:
+ python-dev messages: + msg180955 |
| 2013年01月29日 20:45:05 | pitrou | set | nosy:
+ ezio.melotti |
| 2013年01月29日 20:43:56 | twouters | set | messages: + msg180946 |
| 2012年09月30日 10:18:28 | tomwardill | set | nosy:
+ michael.foord |
| 2012年07月31日 00:24:13 | twouters | set | files: - inthandler.patch |
| 2012年07月31日 00:24:02 | twouters | set | files:
+ inthandler.patch messages: + msg166937 |
| 2012年07月30日 18:44:59 | gregory.p.smith | set | keywords:
+ needs review assignee: gregory.p.smith nosy: + gregory.p.smith |
| 2012年07月30日 18:00:05 | twouters | set | files:
+ inthandler.patch keywords: + patch messages: + msg166916 stage: patch review |
| 2012年07月30日 16:37:01 | twouters | create | |