From 1f857f0053606c23cb3f1abd794e3efbf6981e09 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 13 Apr 2020 11:28:52 -0700 Subject: Remove unnecessary coerce to list (#1321) sorted() takes any iterable and always returns a new list. No need to eagerly coerce to a list. --- tests/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 208b99b..5c29dd5 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -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): -- cgit v1.2.1