summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_dup3.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_dup3.py')
-rw-r--r--ext/ply/test/lex_dup3.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ply/test/lex_dup3.py b/ext/ply/test/lex_dup3.py
index e17b52059..94b5592eb 100644
--- a/ext/ply/test/lex_dup3.py
+++ b/ext/ply/test/lex_dup3.py
@@ -1,9 +1,9 @@
-# lex_token.py
+# lex_dup3.py
#
# Duplicated rule specifiers
import sys
-sys.path.insert(0,"..")
+if ".." not in sys.path: sys.path.insert(0,"..")
import ply.lex as lex
@@ -24,7 +24,7 @@ def t_NUMBER(t):
def t_error(t):
pass
-sys.tracebacklimit = 0
+
lex.lex()