[Python-checkins] python/dist/src/Lib/test test_mmap.py,1.27,1.28
Tim Peters
tim.one@comcast.net
Tue, 10 Sep 2002 23:14:06 -0400
[bwarsaw@users.sourceforge.net]
> Modified Files:
> test_mmap.py
> Log Message:
> test_both(): I believe this was a typo: m is only defined if no
> exception occurred so it should only be closed in the else clause.
> Without this change we can an UnboundLocalError on Linux:
My fault, my apologies. You can accept that, or upgrade to Win98 <wink>.
BTW, the uses of "del" in this routine are absurd, seemingly just to avoid
calling .close() when closing is intended.