summaryrefslogtreecommitdiff
path: root/tests/distinct_on_fields
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-20 15:24:05 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-20 15:43:28 +0100
commit289fc1bfa54af563d17549ade8d77553711453a1 (patch)
treea7348f616bf5938381a7f1005dea422b8dea7c9d /tests/distinct_on_fields
parent7aba69145dcb436539a7798086748b73a39121e5 (diff)
Refs #23919 -- Removed str_prefix usage
Diffstat (limited to 'tests/distinct_on_fields')
-rw-r--r--tests/distinct_on_fields/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py
index e1365dab88..6bb518d2b1 100644
--- a/tests/distinct_on_fields/tests.py
+++ b/tests/distinct_on_fields/tests.py
@@ -1,6 +1,5 @@
from django.db.models import Max
from django.test import TestCase, skipUnlessDBFeature
-from django.test.utils import str_prefix
from .models import Celebrity, Fan, Staff, StaffTag, Tag
@@ -78,8 +77,7 @@ class DistinctOnTests(TestCase):
(
(Staff.objects.distinct('id').order_by('id', 'coworkers__name').
values_list('id', 'coworkers__name')),
- [str_prefix("(1, %(_)s'p2')"), str_prefix("(2, %(_)s'p1')"),
- str_prefix("(3, %(_)s'p1')"), "(4, None)"]
+ ["(1, 'p2')", "(2, 'p1')", "(3, 'p1')", "(4, None)"]
),
)
for qset, expected in qsets: