[pypy-commit] pypy list-strategies: don't rely on the file encoding, which seems to be brittle in some situations.

cfbolz noreply at buildbot.pypy.org
Wed Oct 5 11:46:17 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: list-strategies
Changeset: r47827:d9497f6bf240
Date: 2011-10-05 11:11 +0200
http://bitbucket.org/pypy/pypy/changeset/d9497f6bf240/

Log:	don't rely on the file encoding, which seems to be brittle in some
	situations.

diff --git a/pypy/objspace/std/test/test_listobject.py b/pypy/objspace/std/test/test_listobject.py
--- a/pypy/objspace/std/test/test_listobject.py
+++ b/pypy/objspace/std/test/test_listobject.py
@@ -918,7 +918,7 @@
         assert l == [3, 4]
 
     def test_unicode(self):
-        s = u"&#65533;&#65533;&#65533;"
+        s = u"\ufffd\ufffd\ufffd"
         assert s.encode("ascii", "replace") == "???"
         assert s.encode("ascii", "ignore") == ""
 


More information about the pypy-commit mailing list