[pypy-svn] pypy fast-forward: Error in literals are SyntaxErrors since 2.6

amauryfa commits-noreply at bitbucket.org
Sun Jan 9 21:17:21 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40538:44541970111e
Date: 2011-01-09 19:16 +0100
http://bitbucket.org/pypy/pypy/changeset/44541970111e/

Log:	Error in literals are SyntaxErrors since 2.6

diff --git a/pypy/module/_codecs/test/test_codecs.py b/pypy/module/_codecs/test/test_codecs.py
--- a/pypy/module/_codecs/test/test_codecs.py
+++ b/pypy/module/_codecs/test/test_codecs.py
@@ -36,7 +36,7 @@
         assert 1 <= len(u"\N{CJK UNIFIED IDEOGRAPH-20000}") <= 2
 
     def test_literals(self):
-        raises(UnicodeError, eval, 'u\'\\Uffffffff\'')
+        raises(SyntaxError, eval, 'u\'\\Uffffffff\'')
 
     def test_insecure_pickle(self):
         import pickle


More information about the Pypy-commit mailing list