Kaydet (Commit) f8950654 authored tarafından Neal Norwitz's avatar Neal Norwitz

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

üst f1d50684
...@@ -28,7 +28,7 @@ class CompilerTest(unittest.TestCase): ...@@ -28,7 +28,7 @@ class CompilerTest(unittest.TestCase):
f = open(path, "U") f = open(path, "U")
buf = f.read() buf = f.read()
f.close() f.close()
if "badsyntax" in basename: if "badsyntax" in basename or "bad_coding" in basename:
self.assertRaises(SyntaxError, compiler.compile, self.assertRaises(SyntaxError, compiler.compile,
buf, basename, "exec") buf, basename, "exec")
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment