[Python-checkins] r54509 - sandbox/trunk/2to3/tests/test_grammar.py
collin.winter
python-checkins at python.org
Wed Mar 21 23:18:32 CET 2007
Author: collin.winter
Date: Wed Mar 21 23:18:27 2007
New Revision: 54509
Modified:
sandbox/trunk/2to3/tests/test_grammar.py
Log:
Add an explicit test for py3k's new octal literal syntax.
Modified: sandbox/trunk/2to3/tests/test_grammar.py
==============================================================================
--- sandbox/trunk/2to3/tests/test_grammar.py (original)
+++ sandbox/trunk/2to3/tests/test_grammar.py Wed Mar 21 23:18:27 2007
@@ -126,7 +126,12 @@
def test_4(self):
self.validate("""x = {2, 3, 4,}""")
-
+
+
+class TestNumericLiterals(GrammarTest):
+ def test_new_octal_notation(self):
+ self.validate("""0o7777777777777""")
+
class TestGrammarFiles(GrammarTest):
def test_python2(self):
More information about the Python-checkins
mailing list