diff --git a/tests/regressiontests/queries/tests.py b/tests/regressiontests/queries/tests.py index 7dc69d025a..7a7705d6bd 100644 --- a/tests/regressiontests/queries/tests.py +++ b/tests/regressiontests/queries/tests.py @@ -1437,13 +1437,19 @@ class EmptyQuerySetTests(TestCase): def test_emptyqueryset_values(self): # #14366 -- Calling .values() on an EmptyQuerySet and then cloning that # should not cause an error" - self.assertEqual(list(Number.objects.none().values('num').order_by('num')), []) + self.assertQuerysetEqual( + Number.objects.none().values('num').order_by('num'), [] + ) def test_values_subquery(self): self.assertQuerysetEqual( Number.objects.filter(pk__in=Number.objects.none().values("pk")), [] ) + self.assertQuerysetEqual( + Number.objects.filter(pk__in=Number.objects.none().values_list("pk")), + [] + ) class WeirdQuerysetSlicingTests(BaseQuerysetTest):