gh-117968: Make the test for closed file more safe in the C API tests (GH-118230)
The behavior of fileno() after fclose() is undefined, but it is the only practical way to check whether the file was closed. Only test this on the known platforms (Linux, Windows, macOS), where we already tested that it works.
S
Serhiy Storchaka committed
546cbcfa0eeeb533950bd49e30423f3d3bbd5ebe
Parent: 4b10e20
Committed by GitHub <noreply@github.com>
on 4/25/2024, 5:00:42 AM