[issue16597] file descriptor not being closed with context manager on IOError when device is full

2012-12-02 Thread John-John Tedro
John-John Tedro added the comment: Originally discovered on http://stackoverflow.com/questions/13649330/what-happens-to-file-descriptors-in-python-3-when-close-fails -- ___ Python tracker <http://bugs.python.org/issue16

[issue16597] file descriptor not being closed with context manager on IOError when device is full

2012-12-02 Thread John-John Tedro
Changes by John-John Tedro : -- title: close not being called with context manager on IOError when device is full. -> file descriptor not being closed with context manager on IOError when device is full ___ Python tracker <http://bugs.pyth

[issue16597] close not being called with context manager on IOError when device is full.

2012-12-02 Thread John-John Tedro
New submission from John-John Tedro: In 3.2.2 and 3.2.3 on linux64, when running the following code. try: print("Writing to /dev/full") with open("/dev/full", "w") as f: f.write("Write to full device") except: