]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compiler test when run with -u (long mode)
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 24 Oct 2005 00:01:37 +0000 (00:01 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 24 Oct 2005 00:01:37 +0000 (00:01 +0000)
Lib/test/test_compiler.py

index 6bfe225e7bb3b7f55e5c6a1b186b73f8c6e7b8e8..d2f062c928dfdc5cf49da9a5ded59efa994cb584 100644 (file)
@@ -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: