summaryrefslogtreecommitdiff
path: root/src/zope/proxy/tests/test_decorator.py
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@plyp.com>2023-01-06 08:56:21 +0000
committerGitHub <noreply@github.com>2023-01-06 08:56:21 +0000
commitf65e78d7f3a0e1f749bff67b19103051ccc8fcae (patch)
tree43854f117dd48cb78250d47c412a5716358d7d52 /src/zope/proxy/tests/test_decorator.py
parentf65feaccd6f44254221bea4b215ca385da187069 (diff)
parent1c1a4735b5c50d1a75baaa70f60c8276c741371a (diff)
downloadzope-proxy-f65e78d7f3a0e1f749bff67b19103051ccc8fcae.tar.gz
Merge pull request #54 from zopefoundation/config-with-c-code-template-f65feacc
Drop support for Python 2.7, 3.5, 3.6
Diffstat (limited to 'src/zope/proxy/tests/test_decorator.py')
-rw-r--r--src/zope/proxy/tests/test_decorator.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/zope/proxy/tests/test_decorator.py b/src/zope/proxy/tests/test_decorator.py
index 6d6c8f9..23f228f 100644
--- a/src/zope/proxy/tests/test_decorator.py
+++ b/src/zope/proxy/tests/test_decorator.py
@@ -38,7 +38,7 @@ class DecoratorSpecificationDescriptorTests(unittest.TestCase):
@provider(IContextFactory)
@implementer(IContext)
- class Context(object):
+ class Context:
pass
dsd = self._makeOne()
self.assertEqual(list(dsd.__get__(None, Context)), [IContextFactory])
@@ -56,7 +56,7 @@ class DecoratorSpecificationDescriptorTests(unittest.TestCase):
@provider(IContextFactory)
@implementer(IContext)
- class Context(object):
+ class Context:
pass
dsd = self._makeOne()
self.assertEqual(list(dsd.__get__(Context(), None)), [IContext])
@@ -76,7 +76,7 @@ class DecoratorSpecificationDescriptorTests(unittest.TestCase):
@provider(IContextFactory)
@implementer(IContext)
- class Context(object):
+ class Context:
pass
context = Context()
proxy = ProxyBase(context)
@@ -98,7 +98,7 @@ class DecoratorSpecificationDescriptorTests(unittest.TestCase):
@provider(IContextFactory)
@implementer(IContext)
- class Context(object):
+ class Context:
pass
class IProxyFactory(Interface):
@@ -125,7 +125,7 @@ class DecoratorSpecificationDescriptorTests(unittest.TestCase):
pass
@implementer(IFoo)
- class Foo(object):
+ class Foo:
pass
foo = Foo()
dsd = self._makeOne()
@@ -150,7 +150,7 @@ class SpecificationDecoratorBaseTests(unittest.TestCase):
pass
@implementer(IFoo)
- class Foo(object):
+ class Foo:
pass
foo = Foo()
proxy = self._makeOne(foo)
@@ -167,7 +167,7 @@ class SpecificationDecoratorBaseTests(unittest.TestCase):
pass
@implementer(IFoo)
- class Foo(object):
+ class Foo:
from_foo = 1
class IWrapper(Interface):
@@ -186,6 +186,8 @@ class SpecificationDecoratorBaseTests(unittest.TestCase):
def test_suite():
return unittest.TestSuite((
- unittest.makeSuite(DecoratorSpecificationDescriptorTests),
- unittest.makeSuite(SpecificationDecoratorBaseTests),
+ unittest.defaultTestLoader.loadTestsFromTestCase(
+ DecoratorSpecificationDescriptorTests),
+ unittest.defaultTestLoader.loadTestsFromTestCase(
+ SpecificationDecoratorBaseTests),
))