Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100469 - dev-python/cjkcodecs-1.1.1: build fails in src_test
Summary: dev-python/cjkcodecs-1.1.1: build fails in src_test
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 07:57 UTC by Sascha Silbe
Modified: 2006-02-16 11:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2005-07-27 07:57:21 UTC
dev-python/cjkcodecs-1.1.1 fails tests using the big5hkscs encoding and the "test_streamwriter_strwrite (test_multibytecodec.Test_StreamWriter)" test.


Reproducible: Always
Steps to Reproduce:
1. emerge -uv cjkcodecs

Actual Results:  
>>> Test phase [enabled]: dev-python/cjkcodecs-1.1.1
test_codecmaps_hk - skipped: BIG5HKSCS.TXT not found, download from http://people.freebsd.org/~perky/i18n/BIG5HKSCS.TXT
test_codecmaps_jp - skipped: CP932.TXT not found, download from http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/
test_codecmaps_kr - skipped: CP949.TXT not found, download from http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/
test_codecmaps_tw - skipped: BIG5.TXT not found, download from http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/
test_codecmaps_cn - skipped: EUC-CN.TXT not found, download from http://people.freebsd.org/~perky/i18n/EUC-CN.TXT
test_chunkcoding (test_codecencodings_jp.Test_CP932) ... ok
test_customreplace (test_codecencodings_jp.Test_CP932) ... ok
[...]
test_xmlcharrefreplace (test_codecencodings_cn.Test_GBK) ... ok

======================================================================
ERROR: test_chunkcoding (test_codecencodings_hk.Test_Big5HKSCS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec_support.py", line 27, in setUp
    self.codec = codecs.lookup(self.encoding)
LookupError: unknown encoding: cjkcodecs.big5hkscs

======================================================================
ERROR: test_customreplace (test_codecencodings_hk.Test_Big5HKSCS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec_support.py", line 27, in setUp
    self.codec = codecs.lookup(self.encoding)
LookupError: unknown encoding: cjkcodecs.big5hkscs

======================================================================
ERROR: test_errorhandle (test_codecencodings_hk.Test_Big5HKSCS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec_support.py", line 27, in setUp
    self.codec = codecs.lookup(self.encoding)
LookupError: unknown encoding: cjkcodecs.big5hkscs

======================================================================
ERROR: test_streamreader (test_codecencodings_hk.Test_Big5HKSCS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec_support.py", line 27, in setUp
    self.codec = codecs.lookup(self.encoding)
LookupError: unknown encoding: cjkcodecs.big5hkscs

======================================================================
ERROR: test_streamwriter (test_codecencodings_hk.Test_Big5HKSCS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec_support.py", line 27, in setUp
    self.codec = codecs.lookup(self.encoding)
LookupError: unknown encoding: cjkcodecs.big5hkscs

======================================================================
ERROR: test_xmlcharrefreplace (test_codecencodings_hk.Test_Big5HKSCS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec_support.py", line 27, in setUp
    self.codec = codecs.lookup(self.encoding)
LookupError: unknown encoding: cjkcodecs.big5hkscs

======================================================================
ERROR: test_streamwriter_strwrite (test_multibytecodec.Test_StreamWriter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/portage/cjkcodecs-1.1.1/work/cjkcodecs-1.1.1/tests/test_multibytecodec.py", line 75, in test_streamwr
    wr.write('abcd')
TypeError: only unicode objects are encodable.

----------------------------------------------------------------------
Ran 81 tests in 5.480s

FAILED (errors=7)
Traceback (most recent call last):
  File "testall.py", line 34, in ?
    main()   
  File "testall.py", line 31, in main
    test_support.run_suite(suite)
  File "/usr/lib/python2.3/test/test_support.py", line 246, in run_suite
    raise TestFailed(msg)
test.test_support.TestFailed: errors occurred; run in verbose mode for details

!!! ERROR: dev-python/cjkcodecs-1.1.1 failed.
!!! Function src_test, Line 21, Exitcode 1
!!! testall.py failed
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
Successfully complete the test suite and install the package.


Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11.6-infra-cube-1 i686)
=================================================================
System uname: 2.6.11.6-infra-cube-1 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.13
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=pentium -mcpu=athlon-xp -O3 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share
b/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /us
ex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /usr/vice/etc /var/qmail/alias /var/qmail/contro
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium -mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distcc distlocks fixpackages sandbox sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
LANG="en_US"
LINGUAS="en,de"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-local--main--1.0"
SYNC="rsync://copper.sascha.silbe.org/gentoo-portage"
USE="x86 3dnow 3dnowext S3TC X a52 aac accessibility acl afs alsa apm avi bash-completion berkdb bitmap-fonts blas bzip2 bzlib
 chipcard cjk crypt curl doc dts dv dvd dvdr dvdread ecc emboss encode examples fam fame ffmpeg flac foomaticdb fortran gd gdb
 gtk gtk2 gtkhtml guile hbci imagemagick imap imlib ipv6 j-noaim j-nomsn j-noyahoo jabber jpeg jpeg2k lapack lcms libg++ libww
m1 lzo mad maildir makecheck mbox mikmod mjpeg mmx mmxext monitor mozsvg mp3 mpeg mysql nas ncurses nls nodrm offensive ogg og
opengl oss pam pda pdflib plotutils png postgres python qt qtmt quicktime readline samba scanner sdl serial skey smartcard spe
sl svg tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs xine xml xml2 xv xvid 
as_en,de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2006-02-16 11:55:06 UTC
i don't think anyone should be using cjkcodecs now, python-2.4.2 (stable) has it included. i'm going to start p.masking it soon.