Commit bc7862a5 authored by Tres Seaver's avatar Tres Seaver

Tests expect TypeError for items which aren't seq-of-2-tuples.

parent ac133de1
......@@ -212,8 +212,11 @@ class Bucket(_BucketBase):
items = items.items()
_si = self.__setitem__
for key, value in items:
_si(key, value)
try:
for key, value in items:
_si(key, value)
except ValueError:
raise TypeError('items must be a sequence of 2-tuples')
def __setitem__(self, key, value):
# Enforce test that key has non-default comparison.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment