Message169698
Here is the patch fixing the issue in both StringIO and BytesIO. In both cases, the problem is that in their respective c files, these methods always returned true, without testing whether the file was closed. Is this a recent rewrite? I am surprised this did not bite someone earlier.
I also added a testcase to test_memoryio.py covering this issue; and I added the docstring for these methods, which were missing.
This patch compiles and passes the entire test suite in my system. |
|
Date |
User |
Action |
Args |
2012-09-02 14:01:20 | eng793 | set | recipients:
+ eng793, pitrou, benjamin.peterson, stutzbach, hynek |
2012-09-02 14:01:20 | eng793 | set | messageid: <1346594480.23.0.738264368256.issue15841@psf.upfronthosting.co.za> |
2012-09-02 14:01:19 | eng793 | link | issue15841 messages |
2012-09-02 14:01:19 | eng793 | create | |
|