[pypy-commit] pypy py3.5-text-utf8: Adapt test for changed behavior.
mjacob
pypy.commits at gmail.com
Mon Feb 27 10:58:26 EST 2017
Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.5-text-utf8
Changeset: r90407:ae315621f4b7
Date: 2017-02-27 16:59 +0100
http://bitbucket.org/pypy/pypy/changeset/ae315621f4b7/
Log: Adapt test for changed behavior.
diff --git a/pypy/objspace/std/test/test_unicodeobject.py b/pypy/objspace/std/test/test_unicodeobject.py
--- a/pypy/objspace/std/test/test_unicodeobject.py
+++ b/pypy/objspace/std/test/test_unicodeobject.py
@@ -35,8 +35,7 @@
w_uni = space.wrap(u'abcd')
assert space.text_w(w_uni) == 'abcd'
w_uni = space.wrap(unichr(0xd921) + unichr(0xdddd))
- assert space.text_w(w_uni) == '\xed\xa4\xa1\xed\xb7\x9d'
- # ^^^ and not the 4-bytes combined character
+ raises(UnicodeEncodeError, space.text_w, w_uni)
class AppTestUnicodeStringStdOnly:
More information about the pypy-commit
mailing list