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

« back to all changes in this revision

Viewing changes to Lib/test/test_dict.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:
454
454
        else:
455
455
            self.fail("missing KeyError")
456
456
 
 
457
    def test_empty_presized_dict_in_freelist(self):
 
458
        # Bug #3537: if an empty but presized dict with a size larger
 
459
        # than 7 was in the freelist, it triggered an assertion failure
 
460
        try:
 
461
            d = {'a': 1/0,  'b': None, 'c': None, 'd': None, 'e': None,
 
462
                 'f': None, 'g': None, 'h': None}
 
463
        except ZeroDivisionError:
 
464
            pass
 
465
        d = {}
 
466
 
 
467
 
457
468
 
458
469
from test import mapping_tests
459
470