summaryrefslogtreecommitdiff
path: root/tests/db
diff options
context:
space:
mode:
authorGarrett Holmstrom <gholms@fedoraproject.org>2012-06-08 13:43:06 -0700
committerGarrett Holmstrom <gholms@fedoraproject.org>2012-06-08 13:43:06 -0700
commit1dbdf21a7796b5092e42a59991ca1335445532cc (patch)
tree2d801c9785e5f02bcd6d0959db9ad8ea746fa5de /tests/db
parent9539206ea82ca3a724675aa9f9e49e9b5d07c063 (diff)
downloadboto-1dbdf21a7796b5092e42a59991ca1335445532cc.tar.gz
Use sorted(foo) instead of foo.sort() afterwards
Diffstat (limited to 'tests/db')
-rw-r--r--tests/db/test_lists.py3
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)