Browse files

Fixed the test introduced in 2ca37af under Python 3.

  • Loading branch information...
1 parent 2ca37af commit db5049c9f7c6347e4d7866599877beb9e8e78f60 @aaugustin aaugustin committed Feb 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/generic_relations_regress/tests.py
View
2 tests/regressiontests/generic_relations_regress/tests.py
@@ -93,7 +93,7 @@ def test_generic_relation_ordering(self):
places = list(Place.objects.order_by('links__id'))
def count_places(place):
- return len(filter(lambda p: p.id == place.id, places))
+ return len([p for p in places if p.id == place.id])
self.assertEqual(len(places), 2)
self.assertEqual(count_places(p1), 1)

0 comments on commit db5049c

Please sign in to comment.