commit | ccd9e75b189c8084b08af797c5711938685b8b5b | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Wed Sep 11 02:56:42 2002 +0000 |
committer | Barry Warsaw <barry@python.org> | Wed Sep 11 02:56:42 2002 +0000 |
tree | 208c38404f0d729ed75e13f496d9333296b5731b | |
parent | 1a5b9562d62be4fac4bea7b604f4d921f284a817 [diff] |
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: Traceback (most recent call last): File "Lib/test/test_mmap.py", line 304, in ? test_both() File "Lib/test/test_mmap.py", line 208, in test_both m.close() UnboundLocalError: local variable 'm' referenced before assignment