diff options
| author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:34:22 (GMT) | 
|---|---|---|
| committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-07 12:34:22 (GMT) | 
| commit | 5ae6c42f52c650dc317dd5f0ecab8d5087c44872 (patch) | |
| tree | 8ef897e1dc1e58fab686d1cf301bf0f614b92375 /Lib/test/test_mmap.py | |
| parent | d0a8f160312efb33cb709e5db22cdd605a889c7f (diff) | |
| download | cpython-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.zip cpython-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.tar.gz cpython-5ae6c42f52c650dc317dd5f0ecab8d5087c44872.tar.bz2 | |
Fix potential resource leak in test_mmap.
Diffstat (limited to 'Lib/test/test_mmap.py')
| -rw-r--r-- | Lib/test/test_mmap.py | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index a87e6ae..2c2863e 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -655,6 +655,7 @@ class LargeMmapTests(unittest.TestCase):              f.write(tail)              f.flush()          except (IOError, OverflowError): +            f.close()              raise unittest.SkipTest("filesystem does not have largefile support")          return f | 
