From 1738fc3e5be82a6946a06b5b3f260e782aae1e29 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 1 Oct 2019 19:05:21 +0300 Subject: Fix tests on PyPy Instance methods have type 'instancemethod' instead of just 'method' on PyPy2.7 (version 7.0.0 here). Closes #22. --- src/zope/pagetemplate/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zope/pagetemplate/engine.py b/src/zope/pagetemplate/engine.py index 138109b..fc2a0cd 100644 --- a/src/zope/pagetemplate/engine.py +++ b/src/zope/pagetemplate/engine.py @@ -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__') -- cgit v1.2.1