Commit 512c6068 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove unused test code.

Had reference to TALCompiler -- the only one in TAL.  I assume this
was originally added for testing but has been subsumed by unit tests.
parent c41d974f
......@@ -748,26 +748,3 @@ class FasterStringIO(StringIO):
def _write_ValueError(s):
raise ValueError, "I/O operation on closed file"
def test():
from driver import FILE, parsefile
from DummyEngine import DummyEngine
try:
opts, args = getopt.getopt(sys.argv[1:], "")
except getopt.error, msg:
print msg
sys.exit(2)
if args:
file = args[0]
else:
file = FILE
doc = parsefile(file)
compiler = TALCompiler(doc)
program, macros = compiler()
engine = DummyEngine()
interpreter = TALInterpreter(program, macros, engine)
interpreter()
if __name__ == "__main__":
test()
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