diff options
author | Garrett Holmstrom <gholms@fedoraproject.org> | 2012-06-08 13:43:06 -0700 |
---|---|---|
committer | Garrett Holmstrom <gholms@fedoraproject.org> | 2012-06-08 13:43:06 -0700 |
commit | 1dbdf21a7796b5092e42a59991ca1335445532cc (patch) | |
tree | 2d801c9785e5f02bcd6d0959db9ad8ea746fa5de /tests/db | |
parent | 9539206ea82ca3a724675aa9f9e49e9b5d07c063 (diff) | |
download | boto-1dbdf21a7796b5092e42a59991ca1335445532cc.tar.gz |
Use sorted(foo) instead of foo.sort() afterwards
Diffstat (limited to 'tests/db')
-rw-r--r-- | tests/db/test_lists.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/db/test_lists.py b/tests/db/test_lists.py index d9c76392..50804336 100644 --- a/tests/db/test_lists.py +++ b/tests/db/test_lists.py @@ -66,8 +66,7 @@ class TestLists(object): item.save() time.sleep(3) t = SimpleListModel.get_by_id(t.id) - i1 = item['strs'] - i1.sort() + i1 = sorted(item['strs']) i2 = t.strs i2.sort() assert(i1 == i2) |