cpython/Lib/test/test_interpreters
Artem Yarulin cef334fd4c
tests: use errno.EBADF instead of hardcoded number in _close_file() (GH-148345)
test_interpreters: use errno.EBADF instead of hardcoded number in _close_file()

Replace the hardcoded `9` check in `Lib/test/test_interpreters/utils.py` with `errno.EBADF`.

Using `errno.EBADF` makes the helper portable across platforms with different errno numbering while preserving the intended behavior.
2026-04-11 17:01:18 -07:00
..
__init__.py
__main__.py
test_api.py gh-136438: Make sure test_interpreters pass with all optimization levels (GH-136499) 2026-01-09 18:06:54 +01:00
test_channels.py gh-140652: Fix a crash in _interpchannels.list_all() after closing a channel (ПР-143743) 2026-02-18 14:54:48 +02:00
test_lifecycle.py gh-128639: Don't assume one thread in subinterpreter finalization with fixed daemon thread support (GH-134606) 2025-09-17 11:14:19 -04:00
test_queues.py gh-138253: Fix compatibility of sub-interpreters queues with queue.Queue (GH-138256) 2025-09-02 08:59:20 +03:00
test_stress.py gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164) 2025-09-19 10:41:09 -04:00
utils.py tests: use errno.EBADF instead of hardcoded number in _close_file() (GH-148345) 2026-04-11 17:01:18 -07:00