Commit db5049c9 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Fixed the test introduced in 2ca37af6 under Python 3.

parent 2ca37af6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ class GenericRelationTests(TestCase):

        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)