~pythonregexp2.7/python/issue2636-01+09-01-01

« back to all changes in this revision

Viewing changes to Lib/test/test_dict.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 00:02:12 UTC
  • mfrom: (39022.1.34 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922000212-7r0q4f4ugiq57jph
Merged in changes from the Atomic Grouping / Possessive Qualifiers branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
        resizing = True
545
545
        d[9] = 6
546
546
 
 
547
    def test_empty_presized_dict_in_freelist(self):
 
548
        # Bug #3537: if an empty but presized dict with a size larger
 
549
        # than 7 was in the freelist, it triggered an assertion failure
 
550
        try:
 
551
            d = {'a': 1/0,  'b': None, 'c': None, 'd': None, 'e': None,
 
552
                 'f': None, 'g': None, 'h': None}
 
553
        except ZeroDivisionError:
 
554
            pass
 
555
        d = {}
 
556
 
 
557
 
547
558
 
548
559
from test import mapping_tests
549
560