Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the test introduced in 2ca37af under Python 3.

  • Loading branch information...
commit db5049c9f7c6347e4d7866599877beb9e8e78f60 1 parent 2ca37af
@aaugustin aaugustin authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.