Update to ply 2.3
[gem5.git] / ext / ply / test / lex_error2.py
index 80020f72b170d1726e9d7b8ef3fac68260468e4a..a59c8d45470f95487a58ba875553b3db09002541 100644 (file)
@@ -2,7 +2,10 @@
 #
 # t_error defined, but not function
 
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
 
 tokens = [
     "PLUS",
@@ -16,7 +19,6 @@ t_NUMBER = r'\d+'
 
 t_error = "foo"
 
-import sys
 sys.tracebacklimit = 0
 
 lex.lex()