mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix test_dict.
This commit is contained in:
parent
1374a3eb9c
commit
c31cbbdb73
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,7 @@ class DictTest(unittest.TestCase):
|
||||||
# Bug #3537: if an empty but presized dict with a size larger
|
# Bug #3537: if an empty but presized dict with a size larger
|
||||||
# than 7 was in the freelist, it triggered an assertion failure
|
# than 7 was in the freelist, it triggered an assertion failure
|
||||||
try:
|
try:
|
||||||
d = {'a': 1/0, 'b': None, 'c': None, 'd': None, 'e': None,
|
d = {'a': 1//0, 'b': None, 'c': None, 'd': None, 'e': None,
|
||||||
'f': None, 'g': None, 'h': None}
|
'f': None, 'g': None, 'h': None}
|
||||||
except ZeroDivisionError:
|
except ZeroDivisionError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue