diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index 29e1f102ab..ab8ccd8b4c 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -9,7 +9,7 @@ from .models import ( ) -class Nested(): +class Nested: class Field(models.Field): pass diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index 9319666597..530f908027 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -339,7 +339,7 @@ class ModelPaginationTests(TestCase): Unordered object list warning with an object that has an orderd attribute but not a model attribute. """ - class ObjectList(): + class ObjectList: ordered = False object_list = ObjectList() with warnings.catch_warnings(record=True) as warns: