1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

[py3] Fixed uses of __metaclass__ in tests.

This commit is contained in:
Aymeric Augustin
2012-08-15 00:31:06 +02:00
parent 450c0df653
commit 478a69314e
5 changed files with 8 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ from functools import update_wrapper
from django.db import connection
from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature
from django.utils import six
from .models import Reporter, Article
@@ -35,8 +36,7 @@ class IgnoreNotimplementedError(type):
attrs[k] = ignore_not_implemented(v)
return type.__new__(cls, name, bases, attrs)
class IntrospectionTests(TestCase):
__metaclass__ = IgnoreNotimplementedError
class IntrospectionTests(six.with_metaclass(IgnoreNotimplementedError, TestCase)):
def test_table_names(self):
tl = connection.introspection.table_names()