summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_empty.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_empty.py')
-rw-r--r--ext/ply/test/lex_empty.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/ply/test/lex_empty.py b/ext/ply/test/lex_empty.py
new file mode 100644
index 000000000..6472832f1
--- /dev/null
+++ b/ext/ply/test/lex_empty.py
@@ -0,0 +1,18 @@
+# lex_token.py
+#
+# No rules defined
+
+import lex
+
+tokens = [
+ "PLUS",
+ "MINUS",
+ "NUMBER",
+ ]
+
+import sys
+sys.tracebacklimit = 0
+
+lex.lex()
+
+