Skip to content

Commit

Permalink
Fixed tests introduced for #15915
Browse files Browse the repository at this point in the history
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
akaariai committed Oct 11, 2012
1 parent 501d793 commit b5f224e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/contrib/auth/tests/management.py
Expand Up @@ -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):
"""
Expand Down

0 comments on commit b5f224e

Please sign in to comment.