summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_error1.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_error1.py')
-rw-r--r--ext/ply/test/lex_error1.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ply/test/lex_error1.py b/ext/ply/test/lex_error1.py
index ed7980346..a99d9bedf 100644
--- a/ext/ply/test/lex_error1.py
+++ b/ext/ply/test/lex_error1.py
@@ -2,7 +2,10 @@
#
# Missing t_error() rule
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@ -14,7 +17,6 @@ t_PLUS = r'\+'
t_MINUS = r'-'
t_NUMBER = r'\d+'
-import sys
sys.tracebacklimit = 0
lex.lex()