[Python-checkins] python/dist/src/Lib/test test_compiler.py, 1.13, 1.14
nnorwitz@users.sourceforge.net
nnorwitz at users.sourceforge.net
Mon Oct 24 02:01:40 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22700/Lib/test
Modified Files:
test_compiler.py
Log Message:
Fix compiler test when run with -u (long mode)
Index: test_compiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_compiler.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- test_compiler.py 2 Jun 2005 05:55:19 -0000 1.13
+++ test_compiler.py 24 Oct 2005 00:01:37 -0000 1.14
@@ -28,7 +28,7 @@
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:
More information about the Python-checkins
mailing list