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_response.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_response.py')
| -rw-r--r-- | tests/test_response.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_response.py b/tests/test_response.py index 4371d867f..07456818f 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -78,7 +78,7 @@ class TestFileResponse(unittest.TestCase): from pyramid import response from pyramid.util import text_ - class FakeMimetypesModule(object): + class FakeMimetypesModule: def guess_type(self, *arg, **kw): return text_('foo/bar'), None @@ -218,11 +218,11 @@ class TestGetResponseFactory(unittest.TestCase): self.assertTrue(isinstance(response, Response)) -class Dummy(object): +class Dummy: pass -class DummyConfigurator(object): +class DummyConfigurator: def __init__(self): self.adapters = [] @@ -230,7 +230,7 @@ class DummyConfigurator(object): self.adapters.append((wrapped, type_or_iface)) -class DummyVenusian(object): +class DummyVenusian: def __init__(self): self.attached = [] |
