[Python-checkins] CVS: python/dist/src/Lib/test/output test_unicodedata,1.4,1.5

M.-A. Lemburg lemburg@users.sourceforge.net
Thu, 07 Feb 2002 03:33:51 -0800


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv8617/Lib/test/output

Modified Files:
	test_unicodedata 
Log Message:
Fix to the UTF-8 encoder: it failed on 0-length input strings.

Fix for the UTF-8 decoder: it will now accept isolated surrogates
(previously it raised an exception which causes round-trips to
fail).

Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for
marshalling Unicode objects, so we better make sure it works for
all Unicode code points, including isolated surrogates).

Bumped the PYC magic in a non-standard way -- please review. This
was needed because the old PYC format used illegal UTF-8 sequences
for isolated high surrogates which now raise an exception.



Index: test_unicodedata
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_unicodedata,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_unicodedata	3 Nov 2000 20:24:15 -0000	1.4
--- test_unicodedata	7 Feb 2002 11:33:49 -0000	1.5
***************
*** 1,5 ****
  test_unicodedata
  Testing Unicode Database...
! Methods: 6c7a7c02657b69d0fdd7a7d174f573194bba2e18
  Functions: 41e1d4792185d6474a43c83ce4f593b1bdb01f8a
  API: ok
--- 1,5 ----
  test_unicodedata
  Testing Unicode Database...
! Methods: 84b72943b1d4320bc1e64a4888f7cdf62eea219a
  Functions: 41e1d4792185d6474a43c83ce4f593b1bdb01f8a
  API: ok