diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2012-10-11 23:58:50 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2012-10-12 00:10:49 +0300 |
| commit | b5f224e8e23ca380a93304abe583f1de59c2404e (patch) | |
| tree | 56cb893f1909d668e54c16cb7fb5cddf6f3dcb7c | |
| parent | 501d793398c3ecc3c8a54475d07609cf34643553 (diff) | |
Fixed tests introduced for #15915
The tests didn't clean up properly. The commit that introduced the
errors was 8c427448d53ec0d860e1669f35deed73d0240ba1.
Thanks to Trac alias rizumu for spotting this.
| -rw-r--r-- | django/contrib/auth/tests/management.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/auth/tests/management.py b/django/contrib/auth/tests/management.py index cab7b20f20..7074e04799 100644 --- a/django/contrib/auth/tests/management.py +++ b/django/contrib/auth/tests/management.py @@ -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): """ |
