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_config/test_init.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_config/test_init.py')
| -rw-r--r-- | tests/test_config/test_init.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_config/test_init.py b/tests/test_config/test_init.py index ebcd78bb6..5ca3063c5 100644 --- a/tests/test_config/test_init.py +++ b/tests/test_config/test_init.py @@ -435,10 +435,10 @@ class ConfiguratorTests(unittest.TestCase): pass @implementer(IFoo) - class Foo(object): + class Foo: pass - class Bar(object): + class Bar: pass adaptation = () @@ -925,7 +925,7 @@ test_config.dummy_include2""" config = self._makeOne() - class DummyInspect(object): + class DummyInspect: def getmodule(self, c): return inspect.getmodule(c) @@ -1419,7 +1419,7 @@ class DummyRequest: self.cookies = {} -class DummyThreadLocalManager(object): +class DummyThreadLocalManager: def __init__(self): self.pushed = {'registry': None, 'request': None} self.popped = False @@ -1434,7 +1434,7 @@ class DummyThreadLocalManager(object): self.popped = True -class DummyRegistry(object): +class DummyRegistry: def __init__(self, adaptation=None, util=None): self.utilities = [] self.adapters = [] @@ -1458,5 +1458,5 @@ class DummyRegistry(object): return self.util -class DummyPredicate(object): +class DummyPredicate: pass |
