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

collin.winter python-checkins at python.org
Wed Mar 21 23:39:40 CET 2007


Author: collin.winter
Date: Wed Mar 21 23:39:38 2007
New Revision: 54513

Modified:
   sandbox/trunk/2to3/tests/test_grammar.py
Log:
Back out two over-zealous (read: wrong) syntax tests.

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:39:38 2007
@@ -35,6 +35,8 @@
             self.validate(code)
         except ParseError:
             pass
+        else:
+            raise AssertionError("Syntax shouldn't have been valid")
 
 
 class TestRaiseChanges(GrammarTest):
@@ -133,13 +135,11 @@
         self.validate("""0o7777777777777""")
         self.invalid_syntax("""0o""")
         self.invalid_syntax("""0o7324528887""")
-        self.invalid_syntax("""o7324527""")
         
     def test_new_binary_notation(self):
         self.validate("""0b101010""")
         self.invalid_syntax("""0b""")
         self.invalid_syntax("""0b0101021""")
-        self.invalid_syntax("""b010101""")
 
 
 class TestGrammarFiles(GrammarTest):


More information about the Python-checkins mailing list