]> granicus.if.org Git - python/commitdiff
Revert revision 41940: the test causes -uall to
authorTim Peters <tim.peters@gmail.com>
Sat, 7 Jan 2006 23:20:46 +0000 (23:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 7 Jan 2006 23:20:46 +0000 (23:20 +0000)
fail everywhere.

Lib/test/test_compiler.py

index a290812a10fd9da0175531f1e09b9ae8d2bb837a..d2f062c928dfdc5cf49da9a5ded59efa994cb584 100644 (file)
@@ -12,6 +12,7 @@ class CompilerTest(unittest.TestCase):
         # standard library and its test suite.  This doesn't verify
         # that any of the code is correct, merely the compiler is able
         # to generate some kind of code for it.
+
         libdir = os.path.dirname(unittest.__file__)
         testdir = os.path.dirname(test.test_support.__file__)
 
@@ -35,10 +36,6 @@ class CompilerTest(unittest.TestCase):
 
     def testNewClassSyntax(self):
         compiler.compile("class foo():pass\n\n","<string>","exec")
-    
-    def testSyntaxErrors(self):
-        self.assertRaises(SyntaxError, compiler.compile, 
-                          "def foo(a=1,b):pass\n\n", "<string>", "exec")
 
     def testLineNo(self):
         # Test that all nodes except Module have a correct lineno attribute.