Explorar el Código

Modified test application not to execute implicit rules.

Taddeus Kroes hace 14 años
padre
commit
9962e1855b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      tests/parser.py

+ 3 - 1
tests/parser.py

@@ -110,7 +110,9 @@ def apply_expressions(base_class, expressions, fail=True, silent=False,
     for exp, times, out in expressions:
         res = None
         try:
-            res = parser.run([exp] + list('@' * times))
+            parser.run([exp])
+            parser.parser.rewrite(check_implicit=False)
+            res = parser.parser.root_node
             assert res == out
         except:  # pragma: nocover
             if not silent: