projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update to ply 2.3
[gem5.git]
/
ext
/
ply
/
test
/
lex_error1.py
diff --git
a/ext/ply/test/lex_error1.py
b/ext/ply/test/lex_error1.py
index ed798034650884a5b081c424094ea3b5eba5af4c..a99d9bedf000cd391129ca7e1ee510878764573f 100644
(file)
--- a/
ext/ply/test/lex_error1.py
+++ b/
ext/ply/test/lex_error1.py
@@
-2,7
+2,10
@@
#
# Missing t_error() rule
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@
-14,7
+17,6
@@
t_PLUS = r'\+'
t_MINUS = r'-'
t_NUMBER = r'\d+'
-import sys
sys.tracebacklimit = 0
lex.lex()