Ticket #24196: 24196-test.diff

File 24196-test.diff, 557 bytes (added by Tim Graham, 10 years ago)
  • tests/queries/tests.py

    diff --git a/tests/queries/tests.py b/tests/queries/tests.py
    index 0f86a0f..ca1edab 100644
    a b class EmptyQuerySetTests(TestCase):  
    21182118        self.assertQuerysetEqual(q.values(), [])
    21192119        self.assertQuerysetEqual(q.values_list(), [])
    21202120
     2121    def test_empty_sliced_subquery(self):
     2122        self.assertQuerysetEqual(
     2123            Number.objects.filter(pk__in=Number.objects.all()[1:1]),
     2124            []
     2125       )
     2126
    21212127
    21222128class ValuesQuerysetTests(BaseQuerysetTest):
    21232129    @classmethod
Back to Top