Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2841af4

Browse files
committed
Revert revision 41940: the test causes -uall to
fail everywhere.
1 parent 020c46a commit 2841af4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/test/test_compiler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def testCompileLibrary(self):
1212
# standard library and its test suite. This doesn't verify
1313
# that any of the code is correct, merely the compiler is able
1414
# to generate some kind of code for it.
15+
1516
libdir = os.path.dirname(unittest.__file__)
1617
testdir = os.path.dirname(test.test_support.__file__)
1718

@@ -35,10 +36,6 @@ def testCompileLibrary(self):
3536

3637
def testNewClassSyntax(self):
3738
compiler.compile("class foo():pass\n\n","<string>","exec")
38-
39-
def testSyntaxErrors(self):
40-
self.assertRaises(SyntaxError, compiler.compile,
41-
"def foo(a=1,b):pass\n\n", "<string>", "exec")
4239

4340
def testLineNo(self):
4441
# Test that all nodes except Module have a correct lineno attribute.

0 commit comments

Comments
 (0)