summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-11-03 06:30:59 -0500
committerJason Madden <jamadden@gmail.com>2017-11-03 06:30:59 -0500
commit7ca5ca807d5eb0f7551f8f5e1d78e01aae3ba551 (patch)
tree7cc53300f279dd2d4bc1b3c0ebcd709460bf5cec
parenta8bb76bc054662905d106a1a716538a00ef911b7 (diff)
downloadzope-pagetemplate-7ca5ca807d5eb0f7551f8f5e1d78e01aae3ba551.tar.gz
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.
-rw-r--r--src/zope/pagetemplate/engine.py4
1 files changed, 2 insertions, 2 deletions
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 'list'>
+ >>> 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