summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-12-24 08:25:14 +0100
committerGitHub <noreply@github.com>2025-12-24 08:25:14 +0100
commit3923ebac28672ef4ebfbf2685fbc93206e6c136e (patch)
treeea605c9f8ea49f896102df5b56ce4f3039cb6dae
parent68859a9b45f0b9d472c9277dc61e54afacc0da38 (diff)
Refs #36787 -- Fixed lookup test crash on Oracle.
-rw-r--r--tests/lookup/tests.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py
index 31f247964c..424fc64243 100644
--- a/tests/lookup/tests.py
+++ b/tests/lookup/tests.py
@@ -1855,12 +1855,10 @@ class LookupQueryingTests(TestCase):
Season.objects.filter(In(F("year"), years)).order_by("pk"), seasons
)
- def test_in_lookup_in_filter_text_field(self):
- self.assertSequenceEqual(
- Season.objects.filter(
- In(F("nulled_text_field"), [F("nulled_text_field"), "special_value"])
- ),
- [self.s2],
+ def test_in_lookup_in_filter_expression_string(self):
+ self.assertCountEqual(
+ Season.objects.filter(In(F("year"), [F("year"), 2042])),
+ [self.s1, self.s2, self.s3],
)
def test_filter_lookup_lhs(self):