[Python-checkins] cpython: Issue #22286, #23321: Fix failing test on Windows code page 932
victor.stinner
python-checkins at python.org
Mon Jan 26 23:26:55 CET 2015
https://hg.python.org/cpython/rev/1e8937861ee3
changeset: 94328:1e8937861ee3
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Jan 26 23:26:11 2015 +0100
summary:
Issue #22286, #23321: Fix failing test on Windows code page 932
There was a bug which was fixed. The unit test was also wrong.
files:
Lib/test/test_codecs.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -2954,7 +2954,7 @@
(b'\x81\x00abc', 'strict', None),
(b'\x81\x00abc', 'ignore', '\x00abc'),
(b'\x81\x00abc', 'replace', '\ufffd\x00abc'),
- (b'\x81\x00abc', 'backslashreplace', '\\xff\x00abc'),
+ (b'\x81\x00abc', 'backslashreplace', '\\x81\x00abc'),
))
def test_cp1252(self):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list