Commit b5f224e8 authored by Anssi Kääriäinen's avatar Anssi Kääriäinen
Browse files

Fixed tests introduced for #15915

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

Thanks to Trac alias rizumu for spotting this.
parent 501d7933
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -173,10 +173,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
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):
        """