Author: guido.van.rossum
Date: Sun Jul 22 22:01:13 2007
New Revision: 56494
Modified:
python/branches/py3k-struni/Lib/test/test_compile.py
Log:
Make test_compile not fail.
I *think* it's okay no longer to require that compiling a Unicode
string with a coding declaration fails; it seems appropriate to
just ignore it.
Modified: python/branches/py3k-struni/Lib/test/test_compile.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_compile.py (original)
+++ python/branches/py3k-struni/Lib/test/test_compile.py Sun Jul 22
22:01:13 2007
@@ -304,9 +304,9 @@
f1, f2 = f()
self.assertNotEqual(id(f1.__code__), id(f2.__code__))
- def test_unicode_encoding(self):
- code = "# -*- coding: utf-8 -*-\npass\n"
- self.assertRaises(SyntaxError, compile, code, "tmp", "exec")
+## def test_unicode_encoding(self):
+## code = "# -*- coding: utf-8 -*-\npass\n"
+## self.assertRaises(SyntaxError, compile, code, "tmp", "exec")
def test_subscripts(self):
# SF bug 1448804
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins