Fix compiler test when run with -u (long mode)

This commit is contained in:
Neal Norwitz 2005-10-24 00:01:37 +00:00
parent f1d50684c6
commit f8950654e3
1 changed files with 1 additions and 1 deletions

View 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: