summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_dup2.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_dup2.py')
-rw-r--r--ext/ply/test/lex_dup2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ply/test/lex_dup2.py b/ext/ply/test/lex_dup2.py
index 65e0b21a2..f4d346e75 100644
--- a/ext/ply/test/lex_dup2.py
+++ b/ext/ply/test/lex_dup2.py
@@ -2,7 +2,10 @@
#
# Duplicated rule specifiers
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@ -23,7 +26,6 @@ def t_NUMBER(t):
def t_error(t):
pass
-import sys
sys.tracebacklimit = 0
lex.lex()