mirror of
https://github.com/python/cpython.git
synced 2026-02-23 15:42:04 +00:00
In `_io__Buffered_flush_impl` the macro `CHECK_CLOSED` is used to check the `buffered*` is in a good state to be flushed. That differs slightly from `buffered_closed`. In some cases, that difference would result in `close()` thinking the file needed to be flushed and closed while `flush()` thought the file was already closed. This could happen during GC and would result in an unraisable exception. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| test_bufferedio.py | ||
| test_file.py | ||
| test_fileio.py | ||
| test_general.py | ||
| test_largefile.py | ||
| test_memoryio.py | ||
| test_univnewlines.py | ||
| utils.py | ||