From: Neal Norwitz Date: Mon, 24 Oct 2005 00:01:37 +0000 (+0000) Subject: Fix compiler test when run with -u (long mode) X-Git-Tag: v2.5a0~1228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8950654e3747d569144781bba5281b1551b176c;p=thirdparty%2FPython%2Fcpython.git Fix compiler test when run with -u (long mode) --- diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 6bfe225e7bb3..d2f062c928df 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -28,7 +28,7 @@ class CompilerTest(unittest.TestCase): f = open(path, "U") buf = f.read() f.close() - if "badsyntax" in basename: + if "badsyntax" in basename or "bad_coding" in basename: self.assertRaises(SyntaxError, compiler.compile, buf, basename, "exec") else: