Remove unnecessary coerce to list
sorted() takes any iterable and always returns a new list. No need to
eagerly coerce to a list.
@@ -2656,7 +2656,7 @@ class TestBinarySave(object):
r.rpush(key, *value)
# check that KEYS returns all the keys as they are
- assert sorted(r.keys('*')) == sorted(list(iterkeys(mapping)))
+ assert sorted(r.keys('*')) == sorted(iterkeys(mapping))
# check that it is possible to get list content by key name
for key, value in iteritems(mapping):
