diff options
author | Jens Vagelpohl <jens@plyp.com> | 2023-01-06 08:56:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 08:56:21 +0000 |
commit | f65e78d7f3a0e1f749bff67b19103051ccc8fcae (patch) | |
tree | 43854f117dd48cb78250d47c412a5716358d7d52 /src/zope/proxy/tests/test_decorator.py | |
parent | f65feaccd6f44254221bea4b215ca385da187069 (diff) | |
parent | 1c1a4735b5c50d1a75baaa70f60c8276c741371a (diff) | |
download | zope-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.py | 20 |
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), )) |