STINNER Victor added the comment: > Changeset b9f7b1bf36aa should fix the test on Windows.
Oh, many tests are failing because of this change, so I reverted it. ====================================================================== ERROR: test_surrogatepass_handler (test.test_codecs.CP65001Test) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_codecs.py", line 799, in test_surrogatepass_handler "abc\ud800def") File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", line 642, in assertEqual assertion_func(first, second, msg=msg) File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", line 1007, in assertMultiLineEqual if first != second: ValueError: illegal UTF-16 surrogate ====================================================================== ERROR: test_unicode (test.test_array.ArrayReconstructorTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_array.py", line 183, in test_unicode msg="{0!r} != {1!r}; testcase={2!r}".format(a, b, testcase)) File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", line 642, in assertEqual assertion_func(first, second, msg=msg) File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", line 632, in _baseAssertEqual if not first == second: ValueError: illegal UTF-16 surrogate ====================================================================== ERROR: test_byteswap (test.test_array.UnicodeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_array.py", line 239, in test_byteswap self.assertNotEqual(a, b) File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\unittest\case.py", line 648, in assertNotEqual if not first != second: ValueError: illegal UTF-16 surrogate ====================================================================== FAIL: test_issue17223 (test.test_array.UnicodeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_array.py", line 1082, in test_issue17223 self.assertRaises(ValueError, a.tounicode) AssertionError: ValueError not raised by tounicode ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17223> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com