diff options
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r-- | Lib/test/test_bz2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 9134aae..64ce6ab 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -219,11 +219,16 @@ class BZ2FileTest(BaseTest): bz2f.close() def testOpenDel(self): + # "Test opening and deleting a file many times" self.createTempFile() for i in xrange(10000): o = BZ2File(self.filename) del o + def testOpenNonexistent(self): + # "Test opening a nonexistent file" + self.assertRaises(IOError, BZ2File, "/non/existent") + class BZ2CompressorTest(BaseTest): def testCompress(self): # "Test BZ2Compressor.compress()/flush()" |