summaryrefslogtreecommitdiff
path: root/tests/db_functions
diff options
context:
space:
mode:
authorHasan <hasan.r67@gmail.com>2016-01-18 12:15:45 +0330
committerTim Graham <timograham@gmail.com>2016-01-29 13:37:33 -0500
commit26ad01719d73823e65c0358a2ee9941e0a888a63 (patch)
tree9e458f4c3428400e0970554ce19f6ed02e862a3b /tests/db_functions
parent253adc2b8a52982139d40c4f55b3fd446e1cb8f3 (diff)
Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate.
Diffstat (limited to 'tests/db_functions')
-rw-r--r--tests/db_functions/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/db_functions/tests.py b/tests/db_functions/tests.py
index b6ab915d4d..26acc687ea 100644
--- a/tests/db_functions/tests.py
+++ b/tests/db_functions/tests.py
@@ -11,7 +11,7 @@ from django.db.models.functions import (
Upper,
)
from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
-from django.utils import six, timezone
+from django.utils import timezone
from .models import Article, Author, Fan
@@ -491,7 +491,7 @@ class FunctionTests(TestCase):
self.assertEqual(a.name_part_1[1:], a.name_part_2)
- with six.assertRaisesRegex(self, ValueError, "'pos' must be greater than 0"):
+ with self.assertRaisesMessage(ValueError, "'pos' must be greater than 0"):
Author.objects.annotate(raises=Substr('name', 0))
def test_substr_with_expressions(self):