summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-03-15 14:54:24 +0100
committerTim Graham <timograham@gmail.com>2018-03-15 09:54:24 -0400
commitba3078c92de6ea3017441c7f503f36e52973ac6b (patch)
tree198bbad68b5aa57d9282f9e0d297129b8cfac1fa
parent87dc0844a634360182bcb74d491508111ef8a652 (diff)
downloaddjango-ba3078c92de6ea3017441c7f503f36e52973ac6b.tar.gz
Refs #29155 -- Fixed LookupTests.test_pattern_lookups_with_substr() crash on Oracle.
Test introduced in feb683c4c2c5ecfb61e4cb490c3e357450c0c0e8 revealed unexpected behavior on Oracle that allows concatenating NULL with string.
-rw-r--r--tests/lookup/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py
index 785d3ea478..eb6600bc9b 100644
--- a/tests/lookup/tests.py
+++ b/tests/lookup/tests.py
@@ -15,8 +15,8 @@ class LookupTests(TestCase):
def setUp(self):
# Create a few Authors.
- self.au1 = Author.objects.create(name='Author 1')
- self.au2 = Author.objects.create(name='Author 2')
+ self.au1 = Author.objects.create(name='Author 1', alias='a1')
+ self.au2 = Author.objects.create(name='Author 2', alias='a2')
# Create a few Articles.
self.a1 = Article.objects.create(
headline='Article 1',