diff options
author | David Beazley <dave@dabeaz.com> | 2008-05-29 14:00:14 +0000 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2008-05-29 14:00:14 +0000 |
commit | 3d91085e98cd5d2ddd3822793ab33bbad8287f5c (patch) | |
tree | 81d1988b5dec2f2b51c465527a3fe103847808b0 /test/lex_error1.py | |
parent | 912137883ba0ec6e0f0390c9664a7918ee529c14 (diff) | |
download | ply-3d91085e98cd5d2ddd3822793ab33bbad8287f5c.tar.gz |
Revamped testing framework
Diffstat (limited to 'test/lex_error1.py')
-rw-r--r-- | test/lex_error1.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lex_error1.py b/test/lex_error1.py index a99d9be..4508a80 100644 --- a/test/lex_error1.py +++ b/test/lex_error1.py @@ -1,9 +1,9 @@ -# lex_token.py +# lex_error1.py # # Missing t_error() rule import sys -sys.path.insert(0,"..") +if ".." not in sys.path: sys.path.insert(0,"..") import ply.lex as lex @@ -17,7 +17,7 @@ t_PLUS = r'\+' t_MINUS = r'-' t_NUMBER = r'\d+' -sys.tracebacklimit = 0 + lex.lex() |