Skip to content

Commit

Permalink
Fix tests on PyPy
Browse files Browse the repository at this point in the history
Instance methods have type 'instancemethod' instead of just 'method' on
PyPy2.7 (version 7.0.0 here).

Closes #22.
  • Loading branch information
mgedmin committed Oct 1, 2019
1 parent 804678d commit 1738fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/pagetemplate/engine.py
Expand Up @@ -344,7 +344,7 @@ class ZopeEngine(ZopeBaseEngine):
>>> r = context.evaluate('python: {12: object()}.values')
>>> str(type(r).__name__) in (
... ('_Proxy',) if HAVE_UNTRUSTED else
... ('builtin_function_or_method', 'method'))
... ('builtin_function_or_method', 'method', 'instancemethod'))
True
>>> r = context.evaluate('python: {12: object()}[12].__class__')
Expand Down

0 comments on commit 1738fc3

Please sign in to comment.