diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-24 00:01:37 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-24 00:01:37 (GMT) |
commit | f8950654e3747d569144781bba5281b1551b176c (patch) | |
tree | 6da35b9d0f80360802bb3d82a86e9969c5e77467 /Lib/test/test_compiler.py | |
parent | f1d50684c691bb310244e5f7b1f309c097c2b48e (diff) | |
download | cpython-f8950654e3747d569144781bba5281b1551b176c.zip cpython-f8950654e3747d569144781bba5281b1551b176c.tar.gz cpython-f8950654e3747d569144781bba5281b1551b176c.tar.bz2 |
Fix compiler test when run with -u (long mode)
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r-- | Lib/test/test_compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 6bfe225..d2f062c 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: |