summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compiler.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-24 00:01:37 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-24 00:01:37 (GMT)
commitf8950654e3747d569144781bba5281b1551b176c (patch)
tree6da35b9d0f80360802bb3d82a86e9969c5e77467 /Lib/test/test_compiler.py
parentf1d50684c691bb310244e5f7b1f309c097c2b48e (diff)
downloadcpython-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.py2
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: