[Python-checkins] r54512 - sandbox/trunk/2to3/tests/test_grammar.py

collin.winter python-checkins at python.org
Wed Mar 21 23:38:20 CET 2007


Author: collin.winter
Date: Wed Mar 21 23:38:18 2007
New Revision: 54512

Modified:
   sandbox/trunk/2to3/tests/test_grammar.py
Log:
More tests for py3k-style octal literals.

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:38:18 2007
@@ -131,6 +131,9 @@
 class TestNumericLiterals(GrammarTest):
     def test_new_octal_notation(self):
         self.validate("""0o7777777777777""")
+        self.invalid_syntax("""0o""")
+        self.invalid_syntax("""0o7324528887""")
+        self.invalid_syntax("""o7324527""")
         
     def test_new_binary_notation(self):
         self.validate("""0b101010""")


More information about the Python-checkins mailing list