summaryrefslogtreecommitdiffstats
path: root/Python/brc.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-12-23 17:22:15 (GMT)
committerGitHub <noreply@github.com>2024-12-23 17:22:15 (GMT)
commitd61542b5ff1fe64705e5ce1bcc53048f14098dba (patch)
treead512bcc0a38c765b7ae1b0893b4d22ee51858ae /Python/brc.c
parentc5b0c90b62f1a10b0742db4bcd17da080d4e9111 (diff)
downloadcpython-d61542b5ff1fe64705e5ce1bcc53048f14098dba.zip
cpython-d61542b5ff1fe64705e5ce1bcc53048f14098dba.tar.gz
cpython-d61542b5ff1fe64705e5ce1bcc53048f14098dba.tar.bz2
pathlib tests: create test hierarchy without using class under test (#128200)
In the pathlib tests, avoid using the path class under test (`self.cls`) in test setup. Instead we use `os` functions in `test_pathlib`, and direct manipulation of `DummyPath` internal data in `test_pathlib_abc`.
Diffstat (limited to 'Python/brc.c')
0 files changed, 0 insertions, 0 deletions
an> console.warn("Error occurred while trying to read signal buffer:", e); #endif return 0; } }); EMSCRIPTEN_KEEPALIVE int Py_EMSCRIPTEN_SIGNAL_HANDLING = 0; void _Py_CheckEmscriptenSignals(void) { if (!Py_EMSCRIPTEN_SIGNAL_HANDLING) { return; } int signal = _Py_CheckEmscriptenSignals_Helper(); if (signal) { PyErr_SetInterruptEx(signal); } } #define PY_EMSCRIPTEN_SIGNAL_INTERVAL 50 int _Py_emscripten_signal_clock = PY_EMSCRIPTEN_SIGNAL_INTERVAL; void _Py_CheckEmscriptenSignalsPeriodically(void) { if (_Py_emscripten_signal_clock == 0) { _Py_emscripten_signal_clock = PY_EMSCRIPTEN_SIGNAL_INTERVAL; _Py_CheckEmscriptenSignals(); } else if (Py_EMSCRIPTEN_SIGNAL_HANDLING) { _Py_emscripten_signal_clock--; } }