From b5f224e8e23ca380a93304abe583f1de59c2404e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Thu, 11 Oct 2012 23:58:50 +0300 Subject: [PATCH] Fixed tests introduced for #15915 The tests didn't clean up properly. The commit that introduced the errors was 8c427448d53ec0d860e1669f35deed73d0240ba1. Thanks to Trac alias rizumu for spotting this. --- django/contrib/auth/tests/management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/contrib/auth/tests/management.py b/django/contrib/auth/tests/management.py index cab7b20f20f..7074e047997 100644 --- a/django/contrib/auth/tests/management.py +++ b/django/contrib/auth/tests/management.py @@ -173,10 +173,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase): class PermissionDuplicationTestCase(TestCase): def setUp(self): - self._original_user_permission = models.User._meta.permissions + self._original_permissions = models.Permission._meta.permissions[:] - def tearUp(self): - models.User._meta.permissions = self._original_user_permissions + def tearDown(self): + models.Permission._meta.permissions = self._original_permissions def test_duplicated_permissions(self): """