[Python-Dev] latest unicode-related change causes failure in test_unicode & test_unicodedata

Mark Favas mark.favas@csiro.au
Wed, 27 Jun 2001 07:21:47 +0800


CVS of a short while ago, Tru64 Unix:
"make test" gives two unicode-related failures:

test_unicode
test test_unicode crashed -- exceptions.UnicodeError: UTF-8 decoding
error: illegal encoding
test_unicodedata
The actual stdout doesn't match the expected stdout.
This much did match (between asterisk lines):
**********************************************************************
test_unicodedata
Testing Unicode Database...
Methods: 
**********************************************************************
Then ...
We expected (repr): '6c7a7c02657b69d0fdd7a7d174f573194bba2e18'
But instead we got: '374108f225e0c1488f8389ce6333902830d299fb'
test test_unicodedata failed -- Writing:
'374108f225e0c1488f8389ce6333902830d299fb', expected:
'6c7a7c02657b69d0fdd7a7d174f573194bba2e18'

Running the tests manually, test_unicode fails, test_unicodedata doesn't
fail, but doesn't match the expected output for Methods:

(test_unicode)
<deletia>
Testing Unicode contains method... done.
Testing Unicode formatting strings... done.
Testing builtin codecs...
Traceback (most recent call last):
  File "Lib/test/test_unicode.py", line 383, in ?
    verify(u'\ud800\udc02'.encode('utf-8') == \
  File "./Lib/test/test_support.py", line 95, in verify
    raise TestFailed(reason)
test_support.TestFailed: test failed

(test_unicodedata)
python Lib/test/test_unicodedata.py 
Testing Unicode Database...
Methods: 374108f225e0c1488f8389ce6333902830d299fb
Functions: 41e1d4792185d6474a43c83ce4f593b1bdb01f8a
API: ok


-- 
Mark Favas  -   m.favas@per.dem.csiro.au
CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA