Commit 990a78a9 authored by Guido van Rossum's avatar Guido van Rossum

Assert that the program has the right version.

parent f45ffcd0
......@@ -100,6 +100,7 @@ except ImportError:
pass
# Import local classes
import TALDefs
from DummyEngine import DummyEngine
FILE = "test/input/test01.xml"
......@@ -157,6 +158,7 @@ def interpretit(it, engine=None, stream=None, tal=1, showtal=-1,
strictinsert=1):
from TALInterpreter import TALInterpreter
program, macros = it
assert TALDefs.isCurrentVersion(program)
if engine is None:
engine = DummyEngine(macros)
TALInterpreter(program, macros, engine, stream, wrap=0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment