From: Tim Peters Date: Sat, 7 Jan 2006 23:20:46 +0000 (+0000) Subject: Revert revision 41940: the test causes -uall to X-Git-Tag: v2.5a0~872 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2841af4cecb9a9ae5a16d8d2492dc10832707965;p=thirdparty%2FPython%2Fcpython.git Revert revision 41940: the test causes -uall to fail everywhere. --- diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index a290812a10fd..d2f062c928df 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -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","","exec") - - def testSyntaxErrors(self): - self.assertRaises(SyntaxError, compiler.compile, - "def foo(a=1,b):pass\n\n", "", "exec") def testLineNo(self): # Test that all nodes except Module have a correct lineno attribute.