diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-01-07 23:20:46 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-01-07 23:20:46 (GMT) |
commit | 2841af4cecb9a9ae5a16d8d2492dc10832707965 (patch) | |
tree | 1a2357f951c783cfafca433f38d7885deb9f87ab /Lib/test/test_compiler.py | |
parent | 020c46aa1f1f39b8afb9baf6af278e3c444d8465 (diff) | |
download | cpython-2841af4cecb9a9ae5a16d8d2492dc10832707965.zip cpython-2841af4cecb9a9ae5a16d8d2492dc10832707965.tar.gz cpython-2841af4cecb9a9ae5a16d8d2492dc10832707965.tar.bz2 |
Revert revision 41940: the test causes -uall to
fail everywhere.
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r-- | Lib/test/test_compiler.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index a290812..d2f062c 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","<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. |