diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-04-25 05:16:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 05:16:43 (GMT) |
commit | 33d1cfffe150c667aa64c52e1bdd929e227e6212 (patch) | |
tree | a1fdb7db53726b02f7a1d4312045f51318e95cdd /Python/pymath.c | |
parent | c784b3e8fc9d87630c19bbc213c05754d8a3f175 (diff) | |
download | cpython-33d1cfffe150c667aa64c52e1bdd929e227e6212.zip cpython-33d1cfffe150c667aa64c52e1bdd929e227e6212.tar.gz cpython-33d1cfffe150c667aa64c52e1bdd929e227e6212.tar.bz2 |
[3.12] gh-117968: Make the test for closed file more safe in the C API tests (GH-118230) (GH-118266)
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.
(cherry picked from commit 546cbcfa0eeeb533950bd49e30423f3d3bbd5ebe)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions