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, 3 insertions, 3 deletions
diff --git a/ext/ply/test/lex_dup2.py b/ext/ply/test/lex_dup2.py
index f4d346e75..870e5e7d1 100644
--- a/ext/ply/test/lex_dup2.py
+++ b/ext/ply/test/lex_dup2.py
@@ -1,9 +1,9 @@
-# lex_token.py
+# lex_dup2.py
#
# Duplicated rule specifiers
import sys
-sys.path.insert(0,"..")
+if ".." not in sys.path: sys.path.insert(0,"..")
import ply.lex as lex
@@ -26,7 +26,7 @@ def t_NUMBER(t):
def t_error(t):
pass
-sys.tracebacklimit = 0
+
lex.lex()