From 82a74dce243935688f4f9cd447521d4d141c563b Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 29 Sep 2012 12:10:52 +0200 Subject: [PATCH] Used TransactionTestCase in ModWsgiHandlerTestCase Now the data created in setUp() is not discarded when the connection is closed in the handler's methods. --- django/contrib/auth/tests/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/auth/tests/handlers.py b/django/contrib/auth/tests/handlers.py index f061042ce3..190fcee9fa 100644 --- a/django/contrib/auth/tests/handlers.py +++ b/django/contrib/auth/tests/handlers.py @@ -2,10 +2,10 @@ from __future__ import unicode_literals from django.contrib.auth.handlers.modwsgi import check_password, groups_for_user from django.contrib.auth.models import User, Group -from django.test import TestCase +from django.test import TransactionTestCase -class ModWsgiHandlerTestCase(TestCase): +class ModWsgiHandlerTestCase(TransactionTestCase): """ Tests for the mod_wsgi authentication handler """