diff options
-rw-r--r-- | Lib/test/test_bz2.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index e7c188d..9134aae 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -218,6 +218,12 @@ class BZ2FileTest(BaseTest): self.assertEqual(bz2f.read(), self.TEXT) bz2f.close() + def testOpenDel(self): + self.createTempFile() + for i in xrange(10000): + o = BZ2File(self.filename) + del o + class BZ2CompressorTest(BaseTest): def testCompress(self): # "Test BZ2Compressor.compress()/flush()" |