[KoCo-CVS] [Commit] cjkcodecs/tests test_multibytecodec_support.py
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-05-29 09:17:39
|
perky 03/05/29 02:17:38 Modified: tests test_multibytecodec_support.py Log: We have a working 'utf-8' StreamReader now. Revision Changes Path 1.5 +2 -3 cjkcodecs/tests/test_multibytecodec_support.py Index: test_multibytecodec_support.py =================================================================== RCS file: /cvsroot/koco/cjkcodecs/tests/test_multibytecodec_support.py,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- test_multibytecodec_support.py 27 May 2003 05:17:48 -0000 1.4 +++ test_multibytecodec_support.py 29 May 2003 09:17:38 -0000 1.5 @@ -27,7 +27,7 @@ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # -# $Id: test_multibytecodec_support.py,v 1.4 2003/05/27 05:17:48 perky Exp $ +# $Id: test_multibytecodec_support.py,v 1.5 2003/05/29 09:17:38 perky Exp $ # import sys, codecs, os.path @@ -134,8 +134,7 @@ # We can't test with the real utf-8 StreamReader here. # The standard SR.readline{,s} are mostly broken for multibyte seqs. #UTF8Reader = codecs.lookup('utf-8')[2] - return - UTF8Reader = iconv_codec.lookup('utf-8')[2] + UTF8Reader = codecs.lookup('cjkcodecs.utf-8')[2] for name in ["read", "readline", "readlines"]: for sizehint in [None, -1] + range(1, 33) + \ [64, 128, 256, 512, 1024]: |