[issue11998] test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()

2020-11-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +22379 pull_request: https://github.com/python/cpython/pull/23490 ___ Python tracker ___ ___

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()

2011-05-24 Thread STINNER Victor
STINNER Victor added the comment: I implemented signal.pthread_kill(), so it's now possible to test pending signals in test_signal, even if _tkinter is loaded. I don't think that we need the _finalize() hack anymore. -- resolution: -> wont fix status: open -> closed

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()

2011-05-04 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_signal cannot test blocked signals if _tkinter is loaded -> test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize() ___ Python tracker _

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: As suggested by Antoine, here is a patch to call Tcl_Finalize() in test_signal. You can call create a Tcl/Tk window, destroy it, call _tkinter._finalize(), and then create a new Tcl/Tk window. But call _tkinter._finalize() crashes if there is still a running

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88dca05ed468 by Victor Stinner in branch 'default': Issue #11998, issue #8407: workaround _tkinter issue in test_signal http://hg.python.org/cpython/rev/88dca05ed468 -- nosy: +python-dev ___ Python track

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor : I'm working on signals, especially on pthread_sigmask(), and I'm trying to understand test_signal failures. test_signal fails if the _tkinter module is loaded, because _tkinter loads the Tcl library which create a thread waiting events in select(). For exam