summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_rule1.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_rule1.py')
-rw-r--r--ext/ply/test/lex_rule1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ply/test/lex_rule1.py b/ext/ply/test/lex_rule1.py
index e49a15bba..0406c6f30 100644
--- a/ext/ply/test/lex_rule1.py
+++ b/ext/ply/test/lex_rule1.py
@@ -1,9 +1,9 @@
-# lex_token.py
+# lex_rule1.py
#
-# Rule defined as some other type
+# Rule function with incorrect number of arguments
import sys
-sys.path.insert(0,"..")
+if ".." not in sys.path: sys.path.insert(0,"..")
import ply.lex as lex
@@ -20,7 +20,7 @@ t_NUMBER = 1
def t_error(t):
pass
-sys.tracebacklimit = 0
+
lex.lex()