summaryrefslogtreecommitdiffstats
path: root/Demo/parser/test_parser.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-30 14:19:56 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-30 14:19:56 (GMT)
commit20379135076182fc185fee15f918df6d44924d4c (patch)
tree99990048d5b1bcaf06961392a40d5bcfb9ba7a30 /Demo/parser/test_parser.py
parent4aa5f6f1f2b080bf1f17cfb97edb2ed9483e2e0d (diff)
downloadcpython-20379135076182fc185fee15f918df6d44924d4c.zip
cpython-20379135076182fc185fee15f918df6d44924d4c.tar.gz
cpython-20379135076182fc185fee15f918df6d44924d4c.tar.bz2
Update Demo/parser directory; backport unparse fixes from py3k.
Diffstat (limited to 'Demo/parser/test_parser.py')
-rwxr-xr-xDemo/parser/test_parser.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Demo/parser/test_parser.py b/Demo/parser/test_parser.py
index be39bca..db4e6fe 100755
--- a/Demo/parser/test_parser.py
+++ b/Demo/parser/test_parser.py
@@ -11,19 +11,19 @@ def testChunk(t, fileName):
global _numFailed
print '----', fileName,
try:
- ast = parser.suite(t)
- tup = parser.ast2tuple(ast)
- # this discards the first AST; a huge memory savings when running
+ st = parser.suite(t)
+ tup = parser.st2tuple(st)
+ # this discards the first ST; a huge memory savings when running
# against a large source file like Tkinter.py.
- ast = None
- new = parser.tuple2ast(tup)
+ st = None
+ new = parser.tuple2st(tup)
except parser.ParserError, err:
print
print 'parser module raised exception on input file', fileName + ':'
traceback.print_exc()
_numFailed = _numFailed + 1
else:
- if tup != parser.ast2tuple(new):
+ if tup != parser.st2tuple(new):
print
print 'parser module failed on input file', fileName
_numFailed = _numFailed + 1