diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-05-29 16:43:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-05-29 16:43:10 (GMT) |
commit | 43af12b0b488791d89a9c08b0ad9f1c5004b5ed7 (patch) | |
tree | 5f4df2ef997d39645c4498b19774aaa4db091262 /Lib/test/test_ast.py | |
parent | f7d08e85221f7e1dd5c0d7edb7844c99ddeb6469 (diff) | |
download | cpython-43af12b0b488791d89a9c08b0ad9f1c5004b5ed7.zip cpython-43af12b0b488791d89a9c08b0ad9f1c5004b5ed7.tar.gz cpython-43af12b0b488791d89a9c08b0ad9f1c5004b5ed7.tar.bz2 |
unify TryExcept and TryFinally (closes #12199)
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r-- | Lib/test/test_ast.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index fde2cfe..5520e82 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -347,8 +347,8 @@ exec_results = [ ('Module', [('With', (1, 0), [('withitem', ('Name', (1, 5), 'x', ('Load',)), ('Name', (1, 10), 'y', ('Store',)))], [('Pass', (1, 13))])]), ('Module', [('With', (1, 0), [('withitem', ('Name', (1, 5), 'x', ('Load',)), ('Name', (1, 10), 'y', ('Store',))), ('withitem', ('Name', (1, 13), 'z', ('Load',)), ('Name', (1, 18), 'q', ('Store',)))], [('Pass', (1, 21))])]), ('Module', [('Raise', (1, 0), ('Call', (1, 6), ('Name', (1, 6), 'Exception', ('Load',)), [('Str', (1, 16), 'string')], [], None, None), None)]), -('Module', [('TryExcept', (1, 0), [('Pass', (2, 2))], [('ExceptHandler', (3, 0), ('Name', (3, 7), 'Exception', ('Load',)), None, [('Pass', (4, 2))])], [])]), -('Module', [('TryFinally', (1, 0), [('Pass', (2, 2))], [('Pass', (4, 2))])]), +('Module', [('Try', (1, 0), [('Pass', (2, 2))], [('ExceptHandler', (3, 0), ('Name', (3, 7), 'Exception', ('Load',)), None, [('Pass', (4, 2))])], [], [])]), +('Module', [('Try', (1, 0), [('Pass', (2, 2))], [], [], [('Pass', (4, 2))])]), ('Module', [('Assert', (1, 0), ('Name', (1, 7), 'v', ('Load',)), None)]), ('Module', [('Import', (1, 0), [('alias', 'sys', None)])]), ('Module', [('ImportFrom', (1, 0), 'sys', [('alias', 'v', None)], 0)]), |