commit | dde002899db8d04ac25d630fcc3a27e8bbf282ea | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Mar 18 19:01:53 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Mar 18 19:01:53 2007 +0000 |
tree | 336d26b7a0e0da705cc729688de862bea896b251 | |
parent | 428f0641ec34902b0cce2cfdca833c79e6fdab7c [diff] [blame] |
Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 1a14756..bd80db6 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py
@@ -121,6 +121,7 @@ def testEllipsis(self): x = ... self.assert_(x is Ellipsis) + self.assertRaises(SyntaxError, eval, ".. .") class GrammarTests(unittest.TestCase):