summaryrefslogtreecommitdiff
path: root/ext/ply/test/yacc_noerror.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/yacc_noerror.py')
-rw-r--r--ext/ply/test/yacc_noerror.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/ply/test/yacc_noerror.py b/ext/ply/test/yacc_noerror.py
index d92f48ea6..9c11838eb 100644
--- a/ext/ply/test/yacc_noerror.py
+++ b/ext/ply/test/yacc_noerror.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
@@ -56,7 +59,7 @@ def p_expression_name(t):
print "Undefined name '%s'" % t[1]
t[0] = 0
-import yacc
+
yacc.yacc()