Skip to content

Commit

Permalink
Fix Sphinx doctest build under Python 3.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jamadden committed Nov 3, 2017
1 parent a8bb76b commit 7ca5ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zope/pagetemplate/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def evaluateMacro(self, expr):
...
>>> 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
Expand Down

0 comments on commit 7ca5ca8

Please sign in to comment.