diff --git a/tests/test_multidict.py b/tests/test_multidict.py index 5c5220a33c4..cc8964d84d3 100644 --- a/tests/test_multidict.py +++ b/tests/test_multidict.py @@ -201,7 +201,7 @@ def test_sub(self): "Set operations on views not supported") def test_xor(self): d = self.make_dict([('key', 'value1'), ('key2', 'value2')]) - self.assertEqual({'key', 'key3'}, d.keys() ^ {'key2', 'key3'}) + self.assertEqual({'key', 'key3'}, set(d.keys()) ^ {'key2', 'key3'}) @unittest.skipIf(HAS_NO_SET_OPS_FOR_VIEW, "Set operations on views not supported")