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:
parent
501d793398
commit
b5f224e8e2
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue