~ubuntu-branches/ubuntu/oneiric/python2.5/oneiric

« back to all changes in this revision

Viewing changes to Lib/test/test_zlib.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-12-21 08:57:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081221085749-bijjr25h8na5jdsu
Tags: 2.5.3-0ubuntu1
* New upstream version.
* Regenerate the included documentation.
* Add an option --install-layout=deb, which is ignored for 2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        # verify failure on building decompress object with bad params
72
72
        self.assertRaises(ValueError, zlib.decompressobj, 0)
73
73
 
 
74
    def test_decompressobj_badflush(self):
 
75
        # verify failure on calling decompressobj.flush with bad params
 
76
        self.assertRaises(ValueError, zlib.decompressobj().flush, 0)
 
77
        self.assertRaises(ValueError, zlib.decompressobj().flush, -1)
 
78
 
74
79
 
75
80
 
76
81
class CompressTestCase(unittest.TestCase):