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: ...@@ -100,6 +100,7 @@ except ImportError:
pass pass
# Import local classes # Import local classes
import TALDefs
from DummyEngine import DummyEngine from DummyEngine import DummyEngine
FILE = "test/input/test01.xml" FILE = "test/input/test01.xml"
...@@ -157,6 +158,7 @@ def interpretit(it, engine=None, stream=None, tal=1, showtal=-1, ...@@ -157,6 +158,7 @@ def interpretit(it, engine=None, stream=None, tal=1, showtal=-1,
strictinsert=1): strictinsert=1):
from TALInterpreter import TALInterpreter from TALInterpreter import TALInterpreter
program, macros = it program, macros = it
assert TALDefs.isCurrentVersion(program)
if engine is None: if engine is None:
engine = DummyEngine(macros) engine = DummyEngine(macros)
TALInterpreter(program, macros, engine, stream, wrap=0, 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