diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-17 19:33:25 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-17 19:33:25 (GMT) |
commit | 6e4f2c09dfc7f6c63c86bf795004f7bba9eef2ac (patch) | |
tree | d576ec0cc0a8bf89ef0867891261a11925cc3c69 /Lib/test/test_parser.py | |
parent | c2683ddb29aa3639368058d20f79375a8e68e5a4 (diff) | |
download | cpython-6e4f2c09dfc7f6c63c86bf795004f7bba9eef2ac.zip cpython-6e4f2c09dfc7f6c63c86bf795004f7bba9eef2ac.tar.gz cpython-6e4f2c09dfc7f6c63c86bf795004f7bba9eef2ac.tar.bz2 |
Use the "st" versions of the "ast" calls in the parser module -- there is
no reason to pretend the syntax trees we're dealing with are abstract.
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r-- | Lib/test/test_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index 8955bf8..9e99475 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -13,7 +13,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): st1 = f(s) t = st1.totuple() try: - st2 = parser.sequence2ast(t) + st2 = parser.sequence2st(t) except parser.ParserError: self.fail("could not roundtrip %r" % s) @@ -140,7 +140,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): class IllegalSyntaxTestCase(unittest.TestCase): def check_bad_tree(self, tree, label): try: - parser.sequence2ast(tree) + parser.sequence2st(tree) except parser.ParserError: pass else: |