diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-14 23:18:07 +0200 |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-14 23:18:07 +0200 |
commit | 905cca011b1535d30e7fd3c8d401b74855ea3232 (patch) | |
tree | 5596d86e79981b5c3bfd438068253f4b7557b18c /Lib/test/test_zlib.py | |
parent | 933475895578623872686b276f398eba839eb8d9 (diff) | |
parent | 154bdf92fce957f331a57a54e3cdcaeefeba25ff (diff) | |
download | cpython-git-905cca011b1535d30e7fd3c8d401b74855ea3232.tar.gz |
Merge fix for memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r-- | Lib/test/test_zlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 852857bb41..48d9f582cf 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -193,6 +193,7 @@ class CompressTestCase(BaseCompressTestCase, unittest.TestCase): data = b'x' * size try: self.assertRaises(OverflowError, zlib.compress, data, 1) + self.assertRaises(OverflowError, zlib.decompress, data) finally: data = None |