See summary. The error message is as follows: * Running layman doctests... ....FFF.layman-test/ layman-test/app-admin/ layman-test/app-admin/layman/ layman-test/app-admin/layman/layman-0.8.ebuild layman-test/app-portage/ . ====================================================================== FAIL: Doctest: layman.utils.dict_to_node ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python2.4/doctest.py", line 2152, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for layman.utils.dict_to_node File "/var/tmp/portage/layman-1.0.4/work/layman-1.0.4/layman/utils.py", line 125, in dict_to_node ---------------------------------------------------------------------- File "/var/tmp/portage/layman-1.0.4/work/layman-1.0.4/layman/utils.py", line 132, in layman.utils.dict_to_node Failed example: doc.toprettyxml('', '') Expected: '<?xml version="1.0" ?>\n<root><text &attr="test">text</text><text></text>texttext</root>' Got: '<?xml version="1.0" ?><root><text &attr="test">text</text><text></text>texttext</root>' ====================================================================== FAIL: Doctest: layman.utils.node_to_dict ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python2.4/doctest.py", line 2152, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for layman.utils.node_to_dict File "/var/tmp/portage/layman-1.0.4/work/layman-1.0.4/layman/utils.py", line 69, in node_to_dict ---------------------------------------------------------------------- File "/var/tmp/portage/layman-1.0.4/work/layman-1.0.4/layman/utils.py", line 95, in layman.utils.node_to_dict Failed example: doc.toprettyxml('', '') Expected: '<?xml version="1.0" ?>\n<root>text<!--comment--><text &attr="test">text</text><text/>text</root>' Got: '<?xml version="1.0" ?><root>text<!--comment--><text &attr="test">text</text><text/>text</root>' ====================================================================== FAIL: Doctest: layman.utils.node_to_text ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python2.4/doctest.py", line 2152, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for layman.utils.node_to_text File "/var/tmp/portage/layman-1.0.4/work/layman-1.0.4/layman/utils.py", line 38, in node_to_text ---------------------------------------------------------------------- File "/var/tmp/portage/layman-1.0.4/work/layman-1.0.4/layman/utils.py", line 54, in layman.utils.node_to_text Failed example: doc.toprettyxml('', '') Expected: '<?xml version="1.0" ?>\n<root>text<text>text</text>text</root>' Got: '<?xml version="1.0" ?><root>text<text>text</text>text</root>' ---------------------------------------------------------------------- Ran 9 tests in 0.050s FAILED (failures=3) * DocTests failed - please submit a bug report !!! ERROR: app-portage/layman-1.0.4 failed. Call stack: ebuild.sh, line 1539: Called dyn_test ebuild.sh, line 987: Called src_test layman-1.0.4.ebuild, line 37: Called die !!! DocTesting failed! !!! If you need support, post the topmost build error, and the call stack if relevant. emerge --info as follows: Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r9 x86_64) ================================================================= System uname: 2.6.16-gentoo-r9 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ Gentoo Base System version 1.12.1 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect digest distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.ynet.sk/pub http://gentoo.inf.elte.hu/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://pandemonium.tiscali.de/pub/gentoo/" LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LINGUAS="it" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 aalib acpi avi bash-completion berkdb bitmap-fonts bzip2 caps cli crypt cups dbus dga dio dri dvd dvdread emboss emul-linux-x86 encode exif expat fbcon ffmpeg fftw flac foomaticdb fortran ftp gcj gd ggi gif glut gmp gnutls gphoto2 gpm gstreamer gtk2 hal iconv ieee1394 isdnlog javascript jikes libcaca lm_sensors lzw lzw-tiff mad maildir matroska memlimit mime mmap mp3 mpeg mpi ncurses nls nptl offensive ogg openal opengl oss pam pcre pdflib perl png posix ppds pppd python qt qt3 qt4 quicktime readline recode reflection samba sasl session sharedmem shorten sndfile sockets sox speex spell spl ssl symlink sysvipc tcpd threads tidy tiff truetype-fonts type1-fonts unicode usb wmf xine xml xml2 xorg xv zlib elibc_glibc kernel_linux linguas_it userland_GNU video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hm, interesting. Looks like the minidom implementation has been modified. I'll fix the doctest for the next release. Thanks for the note!
This should have been fixed in layman-1.0.5. You can get the new version from my overlay: layman -f -a wrobel emerge layman Please test :) Thanks for the report!
layman-1.05 works fine for me: * Running layman doctests... ........layman-test/ layman-test/app-admin/ layman-test/app-admin/layman/ layman-test/app-admin/layman/layman-0.8.ebuild layman-test/app-portage/ . ---------------------------------------------------------------------- Ran 9 tests in 0.060s OK
Great. Thanks for checking!