Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 akaariai authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/auth/tests/
6 django/contrib/auth/tests/
@@ -173,10 +173,10 @@ def test_swappable_user_missing_required_field(self):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.