From 7ca5ca807d5eb0f7551f8f5e1d78e01aae3ba551 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Fri, 3 Nov 2017 06:30:59 -0500 Subject: Fix Sphinx doctest build under Python 3. I don't know how it actually passes, though, since test_engine.py includes a bunch of other regexes to normalize, and if I take those out then running the unittest doctest fails. --- src/zope/pagetemplate/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/zope/pagetemplate/engine.py b/src/zope/pagetemplate/engine.py index 01df54c..5fd6679 100644 --- a/src/zope/pagetemplate/engine.py +++ b/src/zope/pagetemplate/engine.py @@ -179,8 +179,8 @@ class ZopeContext(ZopeContextBase): ... >>> zc = ZopeContext(ExpressionEngine, {}) >>> out = zc.evaluateMacro(expression) - >>> type(out) - + >>> type(out) is list + True The method does some trivial checking to make sure we are getting back a macro like we expect: it must be a sequence of sequences, in -- cgit v1.2.1