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.
A
Artem Yarulin committed
cef334fd4c4c24a542ce81ad940b1426b5a7cdbd
Parent: 8a466fa
Committed by GitHub <noreply@github.com>
on 4/12/2026, 12:01:18 AM