[Python-checkins] r82557 - python/branches/py3k/Demo/parser/test_parser.py
mark.dickinson
python-checkins at python.org
Sun Jul 4 20:49:18 CEST 2010
Author: mark.dickinson
Date: Sun Jul 4 20:49:18 2010
New Revision: 82557
Log:
Make Demo/parser/test_parser.py run.
Modified:
python/branches/py3k/Demo/parser/test_parser.py
Modified: python/branches/py3k/Demo/parser/test_parser.py
==============================================================================
--- python/branches/py3k/Demo/parser/test_parser.py (original)
+++ python/branches/py3k/Demo/parser/test_parser.py Sun Jul 4 20:49:18 2010
@@ -11,19 +11,19 @@
global _numFailed
print('----', fileName, end=' ')
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 as 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
More information about the Python-checkins
mailing list