From 1853b7d33c3f42820fa7a80c56278e8f9834b5e0 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sun, 7 Apr 2013 19:42:28 +0200 Subject: [PATCH] Correctly balance the brackets in the wrong syntax tests We want to test the compiler, not the lexer. --- tests/compilers/test_ast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/compilers/test_ast.py b/tests/compilers/test_ast.py index 533f836..31daf14 100644 --- a/tests/compilers/test_ast.py +++ b/tests/compilers/test_ast.py @@ -139,7 +139,7 @@ def test_ast_bad_catch(): "Make sure AST can't compile invalid catch" cant_compile("(catch 1)") cant_compile("(catch [1 3])") - cant_compile("(catch [x [FooBar] BarBar]])") + cant_compile("(catch [x [FooBar] BarBar])") def test_ast_good_except(): @@ -157,7 +157,7 @@ def test_ast_bad_except(): "Make sure AST can't compile invalid except" cant_compile("(except 1)") cant_compile("(except [1 3])") - cant_compile("(except [x [FooBar] BarBar]])") + cant_compile("(except [x [FooBar] BarBar])") def test_ast_good_assert():