From 6668e43d2d67db4574e08a9d54bd80eb105c1b28 Mon Sep 17 00:00:00 2001 From: Sergey Maranchuk Date: Fri, 17 Apr 2020 22:12:06 +0300 Subject: inheriting from `object` not necessary in py3 --- tests/test_i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_i18n.py') diff --git a/tests/test_i18n.py b/tests/test_i18n.py index 4ac6bd4e2..b5500af37 100644 --- a/tests/test_i18n.py +++ b/tests/test_i18n.py @@ -532,7 +532,7 @@ class TestLocalizerRequestMixin(unittest.TestCase): self.assertEqual(result.translate('Approve', 'deformsite'), 'Approve') -class DummyRequest(object): +class DummyRequest: def __init__(self): self.params = {} self.cookies = {} @@ -542,7 +542,7 @@ def dummy_negotiator(request): return 'bogus' -class DummyTranslations(object): +class DummyTranslations: def ugettext(self, text): return text -- cgit v1.2.3