summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_error3.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_error3.py')
-rw-r--r--ext/ply/test/lex_error3.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ply/test/lex_error3.py b/ext/ply/test/lex_error3.py
index 46facf589..584600f3b 100644
--- a/ext/ply/test/lex_error3.py
+++ b/ext/ply/test/lex_error3.py
@@ -2,7 +2,10 @@
#
# t_error defined as function, but with wrong # args
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@ -17,7 +20,6 @@ t_NUMBER = r'\d+'
def t_error():
pass
-import sys
sys.tracebacklimit = 0
lex.lex()