Code

Ticket #15738: contenttypes_tests.diff

File contenttypes_tests.diff, 546 bytes (added by mitnk, 3 years ago)
Line 
1Index: django/contrib/contenttypes/tests.py
2===================================================================
3--- django/contrib/contenttypes/tests.py        (revision 15968)
4+++ django/contrib/contenttypes/tests.py        (working copy)
5@@ -44,7 +44,6 @@
6         # Once we clear the cache, another lookup will again hit the DB
7         ContentType.objects.clear_cache()
8         ContentType.objects.get_for_model(ContentType)
9-        len(db.connection.queries)
10         self.assertEqual(2, len(db.connection.queries))
11 
12     def test_shortcut_view(self):