aboutsummaryrefslogtreecommitdiff
path: root/runtime/Python/tests/t045dfabug.py
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Python/tests/t045dfabug.py')
-rw-r--r--runtime/Python/tests/t045dfabug.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/Python/tests/t045dfabug.py b/runtime/Python/tests/t045dfabug.py
new file mode 100644
index 0000000..76be15e
--- /dev/null
+++ b/runtime/Python/tests/t045dfabug.py
@@ -0,0 +1,21 @@
+import unittest
+import textwrap
+import antlr3
+import testbase
+
+class T(testbase.ANTLRTest):
+
+ def testbug(self):
+ self.compileGrammar()
+
+ cStream = antlr3.StringStream("public fooze")
+ lexer = self.getLexer(cStream)
+ tStream = antlr3.CommonTokenStream(lexer)
+ parser = self.getParser(tStream)
+
+ parser.r()
+
+
+if __name__ == '__main__':
+ unittest.main()
+