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

10
tests/cache/tests.py vendored
View file

@ -56,12 +56,12 @@ class C:
return 24
class Unpicklable(object):
class Unpicklable:
def __getstate__(self):
raise pickle.PickleError()
class UnpicklableType(object):
class UnpicklableType:
# Unpicklable using the default pickling protocol on Python 2.
__slots__ = 'a',
@ -251,7 +251,7 @@ def caches_setting_for_tests(base=None, exclude=None, **params):
return setting
class BaseCacheTests(object):
class BaseCacheTests:
# A common set of tests to apply to all cache backends
def setUp(self):
@ -1010,7 +1010,7 @@ class DBCacheWithTimeZoneTests(DBCacheTests):
pass
class DBCacheRouter(object):
class DBCacheRouter:
"""A router that puts the cache table on the 'other' database."""
def db_for_read(self, model, **hints):
@ -1061,7 +1061,7 @@ class CreateCacheTableForDBCacheTests(TestCase):
verbosity=0, interactive=False)
class PicklingSideEffect(object):
class PicklingSideEffect:
def __init__(self, cache):
self.cache = cache