summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_re1.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_re1.py')
-rw-r--r--ext/ply/test/lex_re1.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ply/test/lex_re1.py b/ext/ply/test/lex_re1.py
index 4a055ad72..9e544fe0d 100644
--- a/ext/ply/test/lex_re1.py
+++ b/ext/ply/test/lex_re1.py
@@ -2,7 +2,10 @@
#
# Bad regular expression in a string
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@ -18,7 +21,6 @@ def t_error(t):
pass
import sys
-sys.tracebacklimit = 0
lex.lex()