summaryrefslogtreecommitdiff
path: root/ext/ply/test/yacc_error1.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/yacc_error1.py')
-rw-r--r--ext/ply/test/yacc_error1.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ply/test/yacc_error1.py b/ext/ply/test/yacc_error1.py
index 413004520..2768fc14a 100644
--- a/ext/ply/test/yacc_error1.py
+++ b/ext/ply/test/yacc_error1.py
@@ -6,6 +6,9 @@
import sys
sys.tracebacklimit = 0
+sys.path.insert(0,"..")
+import ply.yacc as yacc
+
from calclex import tokens
# Parsing rules
@@ -59,7 +62,6 @@ def p_expression_name(t):
def p_error(t,s):
print "Syntax error at '%s'" % t.value
-import yacc
yacc.yacc()