diff options
author | Jason Madden <jamadden@gmail.com> | 2015-05-29 08:27:25 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2015-05-29 08:27:25 -0500 |
commit | ec3e21fe1df341a077c986eb2d3856224842db45 (patch) | |
tree | ec66bacb1fc5a692db607c09736f3d78aa594984 /src/zope/pagetemplate/tests | |
parent | 762a931cf5cca67d514c2e926a3196d62184d092 (diff) | |
download | zope-pagetemplate-ec3e21fe1df341a077c986eb2d3856224842db45.tar.gz |
Add PyPy support.
PyPy doesn't support assigning to __builtins__, even in eval(), so
this means that zope.untrusted.builtins is not helpful, even though it
can be installed. Therefore, HAVE_UNTRUSTED must always be False under
PyPy, just like under Python 3.
Minor doctest renormalization to deal with the changed class name of the proxy.
A pure-Python proxy can't lie about its type, so use __class__ in one doctest.
Diffstat (limited to 'src/zope/pagetemplate/tests')
-rw-r--r-- | src/zope/pagetemplate/tests/test_engine.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zope/pagetemplate/tests/test_engine.py b/src/zope/pagetemplate/tests/test_engine.py index 097a597..ab3b5ca 100644 --- a/src/zope/pagetemplate/tests/test_engine.py +++ b/src/zope/pagetemplate/tests/test_engine.py @@ -94,6 +94,9 @@ def test_suite(): (re.compile(r"<class 'zope.security._proxy._Proxy'>"), "<type 'zope.security._proxy._Proxy'>"), (re.compile(r"<class 'list'>"), "<type 'list'>"), + # PyPy/pure-Python implementation + (re.compile(r"<class 'zope.security.proxy.ProxyPy'>"), + "<type 'zope.security._proxy._Proxy'>"), ]) suite = unittest.TestSuite() |