diff options
| author | Sergey Maranchuk <slav0nic@python.su> | 2020-04-17 22:12:06 +0300 |
|---|---|---|
| committer | Sergey Maranchuk <slav0nic@python.su> | 2020-04-17 22:12:06 +0300 |
| commit | 6668e43d2d67db4574e08a9d54bd80eb105c1b28 (patch) | |
| tree | 10eda61b15ae53815af24af956267e2f632a46f7 /tests/test_session.py | |
| parent | 48cf45b0a1ac04e701101fa18778164825edd429 (diff) | |
| download | pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.tar.gz pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.tar.bz2 pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.zip | |
inheriting from `object` not necessary in py3
Diffstat (limited to 'tests/test_session.py')
| -rw-r--r-- | tests/test_session.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_session.py b/tests/test_session.py index 8f646658e..94626a733 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -6,7 +6,7 @@ import unittest from pyramid import testing -class SharedCookieSessionTests(object): +class SharedCookieSessionTests: def test_ctor_no_cookie(self): request = testing.DummyRequest() session = self._makeOne(request) @@ -603,11 +603,11 @@ class TestPickleSerializer(unittest.TestCase): self.assertIsInstance(result, bytes) -class Dummy(object): +class Dummy: pass -class DummySerializer(object): +class DummySerializer: def dumps(self, value): return base64.b64encode(json.dumps(value).encode('utf-8')) @@ -634,6 +634,6 @@ class DummySessionFactory(dict): self._dirty = True -class DummyResponse(object): +class DummyResponse: def __init__(self): self.headerlist = [] |
