1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #23919 -- Stopped inheriting from object to define new style classes.

This commit is contained in:
Simon Charette
2017-01-19 02:39:46 -05:00
committed by Claude Paroz
parent a556396339
commit cecc079168
293 changed files with 512 additions and 514 deletions

View File

@@ -198,7 +198,7 @@ class FieldsCheckTests(CheckTestCase):
class FormCheckTests(CheckTestCase):
def test_invalid_type(self):
class FakeForm(object):
class FakeForm:
pass
class TestModelAdmin(ModelAdmin):
@@ -578,7 +578,7 @@ class ListFilterTests(CheckTestCase):
)
def test_not_filter(self):
class RandomClass(object):
class RandomClass:
pass
class TestModelAdmin(ModelAdmin):
@@ -590,7 +590,7 @@ class ListFilterTests(CheckTestCase):
'admin.E113')
def test_not_filter_again(self):
class RandomClass(object):
class RandomClass:
pass
class TestModelAdmin(ModelAdmin):
@@ -869,7 +869,7 @@ class InlinesCheckTests(CheckTestCase):
)
def test_not_model_admin(self):
class ValidationTestInline(object):
class ValidationTestInline:
pass
class TestModelAdmin(ModelAdmin):
@@ -894,7 +894,7 @@ class InlinesCheckTests(CheckTestCase):
'admin.E105')
def test_invalid_model_type(self):
class SomethingBad(object):
class SomethingBad:
pass
class ValidationTestInline(TabularInline):
@@ -1034,7 +1034,7 @@ class MinNumCheckTests(CheckTestCase):
class FormsetCheckTests(CheckTestCase):
def test_invalid_type(self):
class FakeFormSet(object):
class FakeFormSet:
pass
class ValidationTestInline(TabularInline):