From ba3078c92de6ea3017441c7f503f36e52973ac6b Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 15 Mar 2018 14:54:24 +0100 Subject: [PATCH] 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. --- tests/lookup/tests.py | 4 ++-- 1 file 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',