From 289fc1bfa54af563d17549ade8d77553711453a1 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 20 Jan 2017 15:24:05 +0100 Subject: Refs #23919 -- Removed str_prefix usage --- tests/forms_tests/tests/test_forms.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/forms_tests') diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index dc70519dac..98c5ee8783 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -19,7 +19,6 @@ from django.forms.utils import ErrorList from django.http import QueryDict from django.template import Context, Template from django.test import SimpleTestCase -from django.test.utils import str_prefix from django.utils.datastructures import MultiValueDict from django.utils.encoding import force_text from django.utils.html import format_html @@ -2519,9 +2518,7 @@ Password: # Case 3: POST with valid data (the success message).) self.assertEqual( my_function('POST', {'username': 'adrian', 'password1': 'secret', 'password2': 'secret'}), - str_prefix( - "VALID: [('password1', %(_)s'secret'), ('password2', %(_)s'secret'), ('username', %(_)s'adrian')]" - ) + "VALID: [('password1', 'secret'), ('password2', 'secret'), ('username', 'adrian')]" ) def test_templates_with_forms(self): -- cgit v1.3