mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-76785: More Fixes for test.support.interpreters (gh-113012)
This brings the module (along with the associated extension modules) mostly in sync with PEP 734. There are only a few small things to wrap up.
This commit is contained in:
parent
cde1417175
commit
a49b427b02
13 changed files with 1899 additions and 88 deletions
|
|
@ -273,6 +273,7 @@ PYTHONPATH=$(COREPYTHONPATH)
|
|||
|
||||
#_xxsubinterpreters _xxsubinterpretersmodule.c
|
||||
#_xxinterpchannels _xxinterpchannelsmodule.c
|
||||
#_xxinterpqueues _xxinterpqueuesmodule.c
|
||||
#_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
|
||||
#_testbuffer _testbuffer.c
|
||||
#_testinternalcapi _testinternalcapi.c
|
||||
|
|
|
|||
|
|
@ -41,8 +41,11 @@
|
|||
@MODULE__QUEUE_TRUE@_queue _queuemodule.c
|
||||
@MODULE__RANDOM_TRUE@_random _randommodule.c
|
||||
@MODULE__STRUCT_TRUE@_struct _struct.c
|
||||
|
||||
# build supports subinterpreters
|
||||
@MODULE__XXSUBINTERPRETERS_TRUE@_xxsubinterpreters _xxsubinterpretersmodule.c
|
||||
@MODULE__XXINTERPCHANNELS_TRUE@_xxinterpchannels _xxinterpchannelsmodule.c
|
||||
@MODULE__XXINTERPQUEUES_TRUE@_xxinterpqueues _xxinterpqueuesmodule.c
|
||||
@MODULE__ZONEINFO_TRUE@_zoneinfo _zoneinfo.c
|
||||
|
||||
# needs libm
|
||||
|
|
|
|||
|
|
@ -2629,10 +2629,11 @@ _get_current_channelend_type(int end)
|
|||
cls = state->recv_channel_type;
|
||||
}
|
||||
if (cls == NULL) {
|
||||
PyObject *highlevel = PyImport_ImportModule("interpreters");
|
||||
// Force the module to be loaded, to register the type.
|
||||
PyObject *highlevel = PyImport_ImportModule("interpreters.channel");
|
||||
if (highlevel == NULL) {
|
||||
PyErr_Clear();
|
||||
highlevel = PyImport_ImportModule("test.support.interpreters");
|
||||
highlevel = PyImport_ImportModule("test.support.interpreters.channel");
|
||||
if (highlevel == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
1685
Modules/_xxinterpqueuesmodule.c
Normal file
1685
Modules/_xxinterpqueuesmodule.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue