From cecc079168e8669138728d31611ff3a1e7eb3a9f Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 19 Jan 2017 02:39:46 -0500 Subject: Refs #23919 -- Stopped inheriting from object to define new style classes. --- tests/postgres_tests/models.py | 2 +- tests/postgres_tests/test_search.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/postgres_tests') diff --git a/tests/postgres_tests/models.py b/tests/postgres_tests/models.py index 2a0d69b21a..a77fc4b152 100644 --- a/tests/postgres_tests/models.py +++ b/tests/postgres_tests/models.py @@ -8,7 +8,7 @@ from .fields import ( ) -class Tag(object): +class Tag: def __init__(self, tag_id): self.tag_id = tag_id diff --git a/tests/postgres_tests/test_search.py b/tests/postgres_tests/test_search.py index 0bf2df50f1..2108beb181 100644 --- a/tests/postgres_tests/test_search.py +++ b/tests/postgres_tests/test_search.py @@ -15,7 +15,7 @@ from . import PostgreSQLTestCase from .models import Character, Line, Scene -class GrailTestData(object): +class GrailTestData: @classmethod def setUpTestData(cls): -- cgit v1.3