summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/queries/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 380d64b8f9..e7dd7fab74 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -3461,6 +3461,10 @@ class RelatedLookupTypeTests(TestCase):
# parent objects
self.assertQuerysetEqual(ObjectC.objects.exclude(childobjecta=self.oa), out_c)
+ # Test for #23226
+ with self.assertNumQueries(0):
+ ObjectB.objects.filter(objecta__in=ObjectA.objects.all())
+
class Ticket14056Tests(TestCase):
def test_ticket_14056(self):