[pypy-commit] pypy py3k: these two tests don't make sense on py3k where we have only unicode strings

antocuni noreply at buildbot.pypy.org
Thu Apr 19 15:33:48 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r54528:580294c5d310
Date: 2012-04-19 10:06 +0200
http://bitbucket.org/pypy/pypy/changeset/580294c5d310/

Log:	these two tests don't make sense on py3k where we have only unicode
	strings

diff --git a/pypy/objspace/std/test/test_stringformat.py b/pypy/objspace/std/test/test_stringformat.py
--- a/pypy/objspace/std/test/test_stringformat.py
+++ b/pypy/objspace/std/test/test_stringformat.py
@@ -256,21 +256,7 @@
         assert "%G" % (nan,) == 'NAN'
 
 class AppTestUnicodeObject:
-    def test_unicode_convert(self):
-        u = u"x"
-        assert isinstance("%s" % u, unicode)
-
-    def test_unicode_nonascii(self):
-        """
-        Interpolating a unicode string with non-ascii characters in it into
-        a string format should decode the format string as ascii and return
-        unicode.
-        """
-        u = u'\x80'
-        result = "%s" % u
-        assert isinstance(result, unicode)
-        assert result == u
-
+    
     def test_unicode_d(self):
         t = 3
         assert u"%.1d" % t == '3'


More information about the pypy-commit mailing list