Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed tests introduced for #15915

The tests didn't clean up properly. The commit that introduced the
errors was 8c42744.

Thanks to Trac alias rizumu for spotting this.
  • Loading branch information...
commit b5f224e8e23ca380a93304abe583f1de59c2404e 1 parent 501d793
Anssi Kääriäinen authored October 11, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/auth/tests/management.py
6  django/contrib/auth/tests/management.py
@@ -173,10 +173,10 @@ def test_swappable_user_missing_required_field(self):
173 173
 class PermissionDuplicationTestCase(TestCase):
174 174
 
175 175
     def setUp(self):
176  
-        self._original_user_permission = models.User._meta.permissions
  176
+        self._original_permissions = models.Permission._meta.permissions[:]
177 177
 
178  
-    def tearUp(self):
179  
-        models.User._meta.permissions = self._original_user_permissions
  178
+    def tearDown(self):
  179
+        models.Permission._meta.permissions = self._original_permissions
180 180
 
181 181
     def test_duplicated_permissions(self):
182 182
         """

0 notes on commit b5f224e

Please sign in to comment.
Something went wrong with that request. Please try again.