This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, Brian.Merrell, belopolsky, bob.ippolito, ezio.melotti, merrellb, petri.lehtinen, pitrou, python-dev, rhettinger, serhiy.storchaka, taras.prokopenko, tchrist, vstinner
Date 2013-12-01.05:13:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385874824.41.0.441881515226.issue11489@psf.upfronthosting.co.za>
In-reply-to
Content
New tests fail on 2.7 branch, at least with Python configured with --enable-unicode=ucs4 (which is default in Gentoo):

======================================================================
FAIL: test_surrogates (json.tests.test_scanstring.TestCScanstring)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7_pre20131201/work/python-2.7.7_pre20131201/Lib/json/tests/test_scanstring.py", line 107, in test_surrogates
    assertScan(u'"z\\ud834\udd20x12345"', u'z\ud834\udd20x12345')
  File "/var/tmp/portage/dev-lang/python-2.7.7_pre20131201/work/python-2.7.7_pre20131201/Lib/json/tests/test_scanstring.py", line 97, in assertScan
    (expect, len(given)))
AssertionError: Tuples differ: (u'z\ud834\udd20x12345', 16) != (u'z\U0001d120x12345', 16)

First differing element 0:
z\ud834\udd20x12345
z\U0001d120x12345

- (u'z\ud834\udd20x12345', 16)
+ (u'z\U0001d120x12345', 16)

======================================================================
FAIL: test_surrogates (json.tests.test_scanstring.TestPyScanstring)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7_pre20131201/work/python-2.7.7_pre20131201/Lib/json/tests/test_scanstring.py", line 107, in test_surrogates
    assertScan(u'"z\\ud834\udd20x12345"', u'z\ud834\udd20x12345')
  File "/var/tmp/portage/dev-lang/python-2.7.7_pre20131201/work/python-2.7.7_pre20131201/Lib/json/tests/test_scanstring.py", line 97, in assertScan
    (expect, len(given)))
AssertionError: Tuples differ: (u'z\ud834\udd20x12345', 16) != (u'z\U0001d120x12345', 16)

First differing element 0:
z\ud834\udd20x12345
z\U0001d120x12345

- (u'z\ud834\udd20x12345', 16)
+ (u'z\U0001d120x12345', 16)

----------------------------------------------------------------------
History
Date User Action Args
2013-12-01 05:13:44Arfreversetrecipients: + Arfrever, rhettinger, bob.ippolito, belopolsky, pitrou, vstinner, ezio.melotti, merrellb, python-dev, Brian.Merrell, petri.lehtinen, tchrist, serhiy.storchaka, taras.prokopenko
2013-12-01 05:13:44Arfreversetmessageid: <1385874824.41.0.441881515226.issue11489@psf.upfronthosting.co.za>
2013-12-01 05:13:44Arfreverlinkissue11489 messages
2013-12-01 05:13:43Arfrevercreate