~ubuntu-branches/ubuntu/karmic/python2.6/karmic-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_marshal.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-09 23:07:54 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091009230754-0ccehibkqf9a6wmv
Tags: 2.6.4~rc1-0ubuntu1
* Python 2.6.4 release candidate 1.
  - Issue #7068: Fixed the partial renaming that occured in r72594.
  - Issue #7042: Fix test_signal (test_itimer_virtual) failure on OS X 10.6.
* Remove the conflict with python-setuptools (fixed in issue #7068).
* Build _hashlib as a builtin. LP: #445530.
* python2.6-doc: Don't compress the sphinx inventory.
* python2.6-doc: Fix jquery.js symlink. LP: #447370.

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
        testString = 'abc' * size
263
263
        marshal.dumps(testString)
264
264
 
 
265
    def test_invalid_longs(self):
 
266
        # Issue #7019: marshal.loads shouldn't produce unnormalized PyLongs
 
267
        invalid_string = 'l\x02\x00\x00\x00\x00\x00\x00\x00'
 
268
        self.assertRaises(ValueError, marshal.loads, invalid_string)
 
269
 
265
270
 
266
271
def test_main():
267
272
    test_support.run_unittest(IntTestCase,