$ python -V Python 2.7.6 ~/cvsPortage/gentoo-x86/dev-python/testtools $ PYTHON_TARGETS=python2_7 ebuild testtools-0.9.35.ebuild clean test Tests running... ====================================================================== FAIL: testtools.tests.test_distutilscmd.TestCommandTest.test_test_module ---------------------------------------------------------------------- stdout: {{{ running test Tests running... Ran 2 tests in 0.000s OK }}} Traceback (most recent call last): File "/mnt/gen2/TmpDir/portage/dev-python/testtools-0.9.35/work/testtools-0.9.35-python2_7/testtools/tests/test_distutilscmd.py", line 73, in test_test_module """))) File "/mnt/gen2/TmpDir/portage/dev-python/testtools-0.9.35/work/testtools-0.9.35-python2_7/testtools/testcase.py", line 406, in assertThat raise mismatch_error MismatchError: u'running test\nTests running...\n\nRan 2 tests in 0.000s\nOK\n' does not match /Tests running...\n\nRan 2 tests in \d.\d\d\ds\nOK\n/ ====================================================================== FAIL: testtools.tests.test_distutilscmd.TestCommandTest.test_test_suite ---------------------------------------------------------------------- stdout: {{{ running test Tests running... Ran 2 tests in 0.001s OK }}} Traceback (most recent call last): File "/mnt/gen2/TmpDir/portage/dev-python/testtools-0.9.35/work/testtools-0.9.35-python2_7/testtools/tests/test_distutilscmd.py", line 95, in test_test_suite """))) File "/mnt/gen2/TmpDir/portage/dev-python/testtools-0.9.35/work/testtools-0.9.35-python2_7/testtools/testcase.py", line 406, in assertThat raise mismatch_error MismatchError: u'running test\nTests running...\n\nRan 2 tests in 0.001s\nOK\n' does not match /Tests running...\n\nRan 2 tests in \d.\d\d\ds\nOK\n/ Ran 1098 tests in 0.299s FAILED (failures=2) Pass fine under py2.7.5 ====================================================================== Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19, 3.13.2-tuxonice x86_64) ================================================================= System uname: Linux-3.13.2-tuxonice-x86_64-AMD_Athlon-tm-_II_X4_645_Processor-with-gentoo-2.2 KiB Mem: 8166816 total, 4271064 free KiB Swap: 1052220 total, 1051932 free Timestamp of tree: Mon, 28 Apr 2014 10:45:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p46-r1 dev-java/java-config: 2.2.0 dev-lang/python: 2.6.9, 2.7.6, 3.2.5-r3, 3.3.5, 3.4.0 dev-util/cmake: 2.8.12.2 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.12.6, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.6.4, 4.7.3-r1, 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.14 (virtual/os-headers) sys-libs/glibc: 2.19 Repositories: gentoo virtualization improvise ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA BSD AdobeFlash-11.x dlj-1.1 PUEL nauty google-talkplugin cadsoft Q3AEULA Oracle-BCLA-JavaSE AdobeFlash-10.3 Intel-SDP GPLv2 skype-4.0.0.7-copyright google-chrome" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -pipe -fomit-frame-pointer -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=athlon64 -pipe -fomit-frame-pointer -O2" DISTDIR="/mnt/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--jobs=7 --load-average=3.4 --keep-going --ask-enter-invalid --autounmask-unrestricted-atoms y --autounmask-write y --complete-graph y --with-bdeps y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo/ http://ftp.swin.edu.au/gentoo" LANG="en_AU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/mnt/gentoo/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/mnt/gen2/TmpDir" PORTDIR="/mnt/gen2/old-portage" PORTDIR_OVERLAY="/var/lib/layman/virtualization /var/lib/layman/improvise" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="pyp-5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3 python3_4 pypy" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Works for me... % /usr/bin/python2.7 -V Python 2.7.6 * python2_7: running distutils-r1_run_phase python_test /usr/bin/python2.7 setup.py test running test Tests running... Ran 1098 tests in 0.521s OK
In fact, even the tests you have disabled pass for me, in both enabled python versions. * python3_3: running distutils-r1_run_phase python_test * python2_7: running distutils-r1_run_phase python_test /usr/bin/python3.3 setup.py test /usr/bin/python2.7 setup.py test running test running test Tests running... Ran 1172 tests in 0.227s OK Tests running... Ran 1172 tests in 0.665s OK
Oh, I see. The disabled tests start failing after I install dev-python/twisted-core. I still can't reproduce the failures in testtools.tests.test_distutilscmd.TestCommandTest.test_test_module or testtools.tests.test_distutilscmd.TestCommandTest.test_test_suite.
right. On further testing with the spare system it's apparent the source is somewhere in my newly updated upgraded main system which I've only just got back into. Fortunately I have a spare. (The failing tests in testtools's suite are a gentoo oddity to do with twisted. They pass fine run from the source) Thx for cross testing Mike