From f8950654e3747d569144781bba5281b1551b176c Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 24 Oct 2005 00:01:37 +0000 Subject: [PATCH] Fix compiler test when run with -u (long mode) --- Lib/test/test_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 6bfe225e7bb..d2f062c928d 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: