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
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
test_queues.py
test_stress.py
utils.py tests: use errno.EBADF instead of hardcoded number in _close_file() (GH-148345) 2026-04-11 17:01:18 -07:00