diff options
| author | Guido van Rossum <guido@python.org> | 2007-07-22 20:01:13 (GMT) | 
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-07-22 20:01:13 (GMT) | 
| commit | f8761c781b09789950e069206c4b9d42f2bc7a9c (patch) | |
| tree | bc34cdd4a039edfe671bdd08bc0f66a080af6c7e /Lib/test/test_compile.py | |
| parent | b5b652e4d1c2b4ac1eb89ee22ccd7b75920b9293 (diff) | |
| download | cpython-f8761c781b09789950e069206c4b9d42f2bc7a9c.zip cpython-f8761c781b09789950e069206c4b9d42f2bc7a9c.tar.gz cpython-f8761c781b09789950e069206c4b9d42f2bc7a9c.tar.bz2  | |
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.
Diffstat (limited to 'Lib/test/test_compile.py')
| -rw-r--r-- | Lib/test/test_compile.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index b5949fd..0bdd036 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -304,9 +304,9 @@ if 1:          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  | 
