Fixed tests introduced for #15915

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

Thanks to Trac alias rizumu for spotting this.
This commit is contained in:
Anssi Kääriäinen 2012-10-11 23:58:50 +03:00
parent 501d793398
commit b5f224e8e2
1 changed files with 3 additions and 3 deletions

View File

@ -173,10 +173,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
class PermissionDuplicationTestCase(TestCase): class PermissionDuplicationTestCase(TestCase):
def setUp(self): def setUp(self):
self._original_user_permission = models.User._meta.permissions self._original_permissions = models.Permission._meta.permissions[:]
def tearUp(self): def tearDown(self):
models.User._meta.permissions = self._original_user_permissions models.Permission._meta.permissions = self._original_permissions
def test_duplicated_permissions(self): def test_duplicated_permissions(self):
""" """