From 7bc5274f6faf9e5296688d4708de0272a758e3f0 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Thu, 4 Aug 2016 06:35:44 -0700 Subject: [PATCH] Fixed #27012 -- Removed unnecessary setup_test_environment() in a test. --- tests/test_client_regress/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/test_client_regress/views.py b/tests/test_client_regress/views.py index abbf7e16fc6..20431a3c2a5 100644 --- a/tests/test_client_regress/views.py +++ b/tests/test_client_regress/views.py @@ -8,7 +8,6 @@ from django.shortcuts import render from django.template.loader import render_to_string from django.test import Client from django.test.client import CONTENT_TYPE_RE -from django.test.utils import setup_test_environment from django.utils.six.moves.urllib.parse import urlencode @@ -63,7 +62,6 @@ def nested_view(request): """ A view that uses test client to call another view. """ - setup_test_environment() c = Client() c.get("/no_template_view/") return render(request, 'base.html', {'nested': 'yes'})