[Python-checkins] r46751 - python/trunk/Objects/fileobject.c

Georg Brandl g.brandl at gmx.net
Fri Jun 9 08:27:17 CEST 2006


Neal Norwitz wrote:
> On 6/8/06, georg.brandl <python-checkins at python.org> wrote:
>> Author: georg.brandl
>> Date: Thu Jun  8 16:50:21 2006
>> New Revision: 46751
>>
>> Modified:
>>    python/trunk/Objects/fileobject.c
>> Log:
>> Bug #1502805: don't alias file.__exit__ to file.close since the
>> latter can return something that's true.
> 
> How about a test for this?

I thought about it (on which occasion I converted test_file to
breakbuildbots^Wunittest), but to trigger this bug, the tested
file must have something in its file->f_close member which
returns a true value. popen results do that, but I do not know
whether this is acceptable.

Georg



More information about the Python-checkins mailing list