Commit 1fdc7028 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #19457: Fixed xmlcharrefreplace tests on wide build when tests are

loaded from .py[co] files.
parent 41e9b401
......@@ -84,9 +84,9 @@ class CodecCallbackTest(unittest.TestCase):
tests = [(u'\U0001f49d', '💝'),
(u'\ud83d', '�'),
(u'\udc9d', '�'),
(u'\ud83d\udc9d', '💝' if len(u'\U0001f49d') > 1 else
'��'),
]
if u'\ud83d\udc9d' != u'\U0001f49d':
tests += [(u'\ud83d\udc9d', '��')]
for encoding in ['ascii', 'latin1', 'iso-8859-15']:
for s, exp in tests:
self.assertEqual(s.encode(encoding, 'xmlcharrefreplace'),
......
......@@ -1663,9 +1663,9 @@ class UnicodeTest(
tests = [(u'\U0001f49d', '💝'),
(u'\ud83d', '�'),
(u'\udc9d', '�'),
(u'\ud83d\udc9d', '💝' if len(u'\U0001f49d') > 1 else
'��'),
]
if u'\ud83d\udc9d' != u'\U0001f49d':
tests += [(u'\ud83d\udc9d', '��')]
for s, exp in tests:
self.assertEqual(
unicode_encodedecimal(u"123" + s, "xmlcharrefreplace"),
......
......@@ -12,6 +12,12 @@ Core and Builtins
Library
-------
Tests
-----
- Issue #19457: Fixed xmlcharrefreplace tests on wide build when tests are
loaded from .py[co] files.
Whats' New in Python 2.7.6?
===========================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment