summaryrefslogtreecommitdiff
path: root/tests/regressiontests/model_forms_regress/tests.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-15 00:31:06 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-15 00:31:29 +0200
commit478a69314e0f1a7fb4e9fd80f2cd3b9f210cc780 (patch)
treef8aee7f7c1498f800b21a84367ff06b9419a029b /tests/regressiontests/model_forms_regress/tests.py
parent450c0df6537e4cb85194754ffa051565f356bbc6 (diff)
[py3] Fixed uses of __metaclass__ in tests.
Diffstat (limited to 'tests/regressiontests/model_forms_regress/tests.py')
-rw-r--r--tests/regressiontests/model_forms_regress/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/regressiontests/model_forms_regress/tests.py b/tests/regressiontests/model_forms_regress/tests.py
index 3cb129f84e..90c907f2a6 100644
--- a/tests/regressiontests/model_forms_regress/tests.py
+++ b/tests/regressiontests/model_forms_regress/tests.py
@@ -485,9 +485,8 @@ class CustomMetaclass(ModelFormMetaclass):
new.base_fields = {}
return new
-class CustomMetaclassForm(forms.ModelForm):
- __metaclass__ = CustomMetaclass
-
+class CustomMetaclassForm(six.with_metaclass(CustomMetaclass, forms.ModelForm)):
+ pass
class CustomMetaclassTestCase(TestCase):
def test_modelform_factory_metaclass(self):