summaryrefslogtreecommitdiffstats
path: root/PC/_testconsole.c
Commit message (Collapse)AuthorAgeFilesLines
* gh-116322: Add Py_mod_gil module slot (#116882)Brett Simmers2024-05-031-2/+3
| | | | | | | | | | | | | | This PR adds the ability to enable the GIL if it was disabled at interpreter startup, and modifies the multi-phase module initialization path to enable the GIL when loading a module, unless that module's spec includes a slot indicating it can run safely without the GIL. PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148. A warning will be issued up to once per interpreter for the first GIL-using module that is loaded. If `-v` is given, a shorter message will be printed to stderr every time a GIL-using module is loaded (including the first one that issues a warning).
* gh-85283: Build _testconsole extension with limited C API (#117125)Victor Stinner2024-03-211-15/+20
|
* gh-110147: test_msvcrt: run console I/O tests in new processes (#110268)AN Long2023-10-051-19/+0
|
* gh-108996: fix and enable test_msvcrt (#109226)AN Long2023-09-221-0/+37
| | | | | | * Add _testconsole.flush_console_input_buffer() function. * test_kbhit(), test_getwch() and test_getwche() now call flush_console_input_buffer(). * Don't override sys.stdin anymore (not needed).
* gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205)Eric Snow2023-05-051-0/+1
| | | Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204).
* gh-101819: Remove _PyWindowsConsoleIO_Type from the Windows DLL (GH-101904)Erlend E. Aasland2023-02-151-2/+9
| | | Automerge-Triggered-By: GH:erlend-aasland
* bpo-46303: Fix fileutils.h compiler warnings (GH-30550)Victor Stinner2022-01-111-1/+5
| | | | Add missing pycore_fileutils.h include in _tkinter.c and _testconsole.c.
* bpo-30555: Fix WindowsConsoleIO fails in the presence of fd redirection ↵Segev Finer2021-04-231-3/+6
| | | | | | | | (GH-1927) This works by not caching the handle and instead getting the handle from the file descriptor each time, so that if the actual handle changes by fd redirection closing/opening the console handle beneath our feet, we will keep working correctly.
* bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)Terry Jan Reedy2020-09-121-1/+1
| | | | The problems occured with a repository build on machine with freshly updated Windows 10 Pro.
* Use calloc-based functions, not malloc. (GH-19152)Andy Lester2020-03-251-2/+1
|
* bpo-31462: Remove trailing whitespaces. (#3564)Serhiy Storchaka2017-09-141-3/+3
|
* Issue #28217: Adds _testconsole module to test console input. Fixes some ↵Steve Dower2016-10-031-0/+131
issues found by the tests.