Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
Use @Implementer instead of implements on test class
Browse files Browse the repository at this point in the history
@Implementer works on both Python 2 and 3.
  • Loading branch information
wylee committed May 23, 2016
1 parent eb8f554 commit eb684ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyramid_restler/tests.py
Expand Up @@ -20,7 +20,7 @@
from sqlalchemy.schema import Column
from sqlalchemy.types import Integer, String

from zope.interface import implements
from zope.interface import implementer

from pyramid_restler.interfaces import IContext
from pyramid_restler.model import SQLAlchemyORMContext
Expand Down Expand Up @@ -364,9 +364,9 @@ def test_unknown_method_using_param(self):

def _dummy_context_factory():

class Context(object):

implements(IContext)
@implementer(IContext)
class Context(object):

_collection = [
{'id': 1, 'val': 'one'},
Expand Down

0 comments on commit eb684ff

Please sign in to comment.