summaryrefslogtreecommitdiff
path: root/ext/ply/test/lex_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ply/test/lex_module.py')
-rw-r--r--ext/ply/test/lex_module.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ply/test/lex_module.py b/ext/ply/test/lex_module.py
new file mode 100644
index 000000000..8bdd3ed47
--- /dev/null
+++ b/ext/ply/test/lex_module.py
@@ -0,0 +1,10 @@
+# lex_module.py
+#
+
+import sys
+if ".." not in sys.path: sys.path.insert(0,"..")
+
+import ply.lex as lex
+import lex_module_import
+lex.lex(module=lex_module_import)
+lex.runmain(data="3+4")