Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed DeprecationWarning caused by assertEquals.

  • Loading branch information...
commit 776b6470c10bdcf1302fa95c2e81be2b11bb2fdc 1 parent 2af58a2
Loïc Bistuer loic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/select_related/tests.py
4 tests/select_related/tests.py
View
@@ -151,5 +151,5 @@ def test_chaining(self):
queryset = HybridSpecies.objects.select_related('parent_1').select_related('parent_2')
with self.assertNumQueries(1):
obj = queryset[0]
- self.assertEquals(obj.parent_1, parent_1)
- self.assertEquals(obj.parent_2, parent_2)
+ self.assertEqual(obj.parent_1, parent_1)
+ self.assertEqual(obj.parent_2, parent_2)
Please sign in to comment.
Something went wrong with that request. Please try again.