[pypy-commit] pypy py3k: kill a test about compiling unicode strings: they are always unicode anyway; fix syntax in another test

antocuni noreply at buildbot.pypy.org
Fri Feb 24 20:13:39 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52882:bbe53f6110bf
Date: 2012-02-24 20:03 +0100
http://bitbucket.org/pypy/pypy/changeset/bbe53f6110bf/

Log:	kill a test about compiling unicode strings: they are always unicode
	anyway; fix syntax in another test

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
@@ -512,14 +512,8 @@
         raises(ValueError, compile, "\n", "<string>", "exec", 0xff)
         raises(TypeError, compile, '1+2', 12, 34)
 
-    def test_unicode_compile(self):
-        try:
-            compile(u'-', '?', 'eval')
-        except SyntaxError, e:
-            assert e.lineno == 1
-
     def test_unicode_encoding_compile(self):
-        code = u"# -*- coding: utf-8 -*-\npass\n"
+        code = "# -*- coding: utf-8 -*-\npass\n"
         raises(SyntaxError, compile, code, "tmp", "exec")
 
     def test_bytes_compile(self):


More information about the pypy-commit mailing list