Commits

Anonymous committed 542a56d

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.

Comments (0)

Files changed (1)

django/contrib/auth/tests/management.py

 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):
         """