summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-05-07 16:24:04 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-05-07 16:24:04 (GMT)
commitda029fb293d7b389ad54bd843966a266fb4de615 (patch)
tree531ac06a99c2e235901d068b02b45f1c90b8529b /Lib/test/test_parser.py
parent11c1dee183a39626a904f3f9e09b47dab3fd8117 (diff)
downloadcpython-da029fb293d7b389ad54bd843966a266fb4de615.zip
cpython-da029fb293d7b389ad54bd843966a266fb4de615.tar.gz
cpython-da029fb293d7b389ad54bd843966a266fb4de615.tar.bz2
Issue #14741: Fix missing support for ellipsis in parser module.
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r--Lib/test/test_parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 50dc8d1..cae09df 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -106,6 +106,8 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
self.check_expr("lambda x, *y, **z: 0")
self.check_expr("(x for x in range(10))")
self.check_expr("foo(x for x in range(10))")
+ self.check_expr("...")
+ self.check_expr("a[...]")
def test_simple_expression(self):
# expr_stmt