Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58415:1df7698eebfd
Date: 2012-10-24 23:19 -0700
http://bitbucket.org/pypy/pypy/changeset/1df7698eebfd/

Log:    a couple more encoding related failures

diff --git a/pypy/module/__builtin__/test/test_builtin.py 
b/pypy/module/__builtin__/test/test_builtin.py
--- a/pypy/module/__builtin__/test/test_builtin.py
+++ b/pypy/module/__builtin__/test/test_builtin.py
@@ -490,6 +490,11 @@
     def test_bytes_compile(self):
         code = b"# -*- coding: utf-8 -*-\npass\n"
         compile(code, "tmp", "exec")
+        c = compile(b"# coding: latin1\nfoo = 'caf\xe9'\n", "<string>", "exec")
+        ns = {}
+        exec(c, ns)
+        assert ns['foo'] == 'caf&#233;'
+        assert eval(b"# coding: latin1\n'caf\xe9'\n") == 'caf&#233;'
 
     def test_recompile_ast(self):
         import _ast
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to