Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443492 - dev-python/cssutils-0.9.9 / 0.9.10_beta1 - src_test(): FAIL: encutils.getMetaInfo
Summary: dev-python/cssutils-0.9.9 / 0.9.10_beta1 - src_test(): FAIL: encutils.getMeta...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Raschbacher
URL: https://bitbucket.org/cthedot/cssutil...
Whiteboard:
Keywords:
Depends on:
Blocks: 461200
  Show dependency tree
 
Reported: 2012-11-16 10:14 UTC by Chris Kerr
Modified: 2015-11-26 09:25 UTC (History)
3 users (show)

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


Attachments
build.log (0.9.9) (file_443492.txt,17.27 KB, text/plain)
2012-11-16 10:22 UTC, Chris Kerr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kerr 2012-11-16 10:14:24 UTC
Both dev-python/cssutils packages fail the test_encutils test when I try to install them.

FAIL: encutils.getMetaInfo
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gob/portage/tmp/portage/dev-python/cssutils-0.9.9/work/cssutils-0.9.9/src/tests/test_encutils/__init__.py", line 165, in test_getMetaInfo
    self.assertEqual(exp, encutils.getMetaInfo(test, log=log))
AssertionError: Tuples differ: (None, None) != ('text/html', 'ascii')


Reproducible: Always

Steps to Reproduce:
emerge cssutils
Actual Results:  
FAIL (see build log)

Expected Results:  
success

Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r2, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-AMD_FX-tm-4100_Quad-Core_Processor-with-gentoo-2.1
Timestamp of tree: Sun, 11 Nov 2012 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.1.4-r3, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        1.3.5, 2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo zfs science seden Local-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @FREE AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/gob/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB eo"
MAKEOPTS="-j4"
PKGDIR="/gob/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/gob/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zfs /var/lib/layman/science /var/lib/layman/seden /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr avahi avx bash-completion berkdb boost branding bs2b bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt cups cxx dbus declarative device-mapper dga directfb djvu dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg fftw firefox flac fortran gdbm gif gimp git gnuplot gpm gtk iconv icu idn inotify ipv6 jabber jingle jpeg jpeg2k kde kipi lapack latex lcms libnotify lm_sensors lzma mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg msn mtp mudflap multilib musicbrainz ncurses nls nptl nsplugin ntp ogg openexr opengl openmp openvg pam pango pch pcre pdf phonon plasma png policykit ppds pppd prison qt3support qt4 raw readline schroedinger sdl semantic-desktop session sip smp spell sse sse2 sse4_1 ssl ssse3 startup-notification svg taglib tcpd theora threads tiff truetype udev udisks unicode upower usb vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB eo" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon r100 r200 r300 r600" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Chris Kerr 2012-11-16 10:22:53 UTC
Created attachment 329642 [details]
build.log (0.9.9)
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-11-27 09:44:10 UTC
yes it does. Await action from upstream
Comment 3 Thomas Raschbacher gentoo-dev 2013-11-14 14:03:09 UTC
hmm i still get an error.. a different one though ..

@Ian does it work for you? cthedot did say on the upstream bug it works with "newer" python 2.7 ...

####snip

>>> Source compiled.
 * python3_3: running distutils-r1_run_phase python_test
 * python2_7: running distutils-r1_run_phase python_test
nosetests -P /var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/tests
nosetests -P /var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python2_7/lib/cssutils/tests
.........................................................................................................................................................................................................................................................................................................................F....................................................................................................................................................................................................E...........................................................................................................................
======================================================================
ERROR: CSSParser.parseUrl()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/_fetch.py", line 24, in _defaultFetcher
    res = urllib.request.urlopen(request)
  File "/usr/lib64/python3.3/urllib/request.py", line 156, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.3/urllib/request.py", line 475, in open
    response = meth(req, response)
  File "/usr/lib64/python3.3/urllib/request.py", line 587, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python3.3/urllib/request.py", line 513, in error
    return self._call_chain(*args)
  File "/usr/lib64/python3.3/urllib/request.py", line 447, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.3/urllib/request.py", line 595, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/tests/test_parse.py", line 143, in test_parseUrl
    self.assertRaises(urllib.error.HTTPError, parser.parseUrl, 'http://cthedot.de/not-present.css')
  File "/usr/lib64/python3.3/unittest/case.py", line 570, in assertRaises
    return context.handle('assertRaises', callableObj, args, kwargs)
  File "/usr/lib64/python3.3/unittest/case.py", line 135, in handle
    callable_obj(*args, **kwargs)
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/parse.py", line 201, in parseUrl
    overrideEncoding=encoding)
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/util.py", line 838, in _readUrl
    r = fetcher(url)
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/_fetch.py", line 27, in _defaultFetcher
    log.warn(e, error=OSError)
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/errorhandler.py", line 98, in __handle
    raise error(msg)
OSError: HTTP Error 404: Not Found

======================================================================
FAIL: CSSStyleSheet.namespaces.namespaces
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10-python3_3/lib/cssutils/tests/test_cssstylesheet.py", line 336, in test_namespaces1
    self.assertEquals(['', 'ex2'], list(s.namespaces))
AssertionError: Lists differ: ['', 'ex2'] != ['ex2', '']

First differing element 0:

ex2

- ['', 'ex2']
+ ['ex2', '']

----------------------------------------------------------------------
Ran 362 tests in 4.831s

FAILED (errors=1, failures=1)
 * ERROR: dev-python/cssutils-0.9.10-r1::gentoo failed (test phase):
 *   Testing failed with python3.3
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 3777:  Called distutils-r1_src_test
 *   environment, line 1244:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  310:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3616:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2846:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
.. *   environment, line 2794:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2792:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2837:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  723:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1180:  Called python_test
 *   environment, line 3669:  Called die
 * The specific snippet of code:
 *       "$@" || die "Testing failed with ${EPYTHON}"
 *
 * If you need support, post the output of `emerge --info '=dev-python/cssutils-0.9.10-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/cssutils-0.9.10-r1::gentoo'`.
/usr/lib64/portage/bin/isolated-functions.sh: line 188: wait: `Testing failed with python3.3': not a pid or valid job spec
 * The complete build log is located at '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10'
 * S: '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10'
........................................................................................
----------------------------------------------------------------------
Ran 362 tests in 7.645s

OK

>>> Failed to emerge dev-python/cssutils-0.9.10-r1, Log file:

>>>  '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/temp/build.log'

 * Messages for package dev-python/cssutils-0.9.10-r1:

 * ERROR: dev-python/cssutils-0.9.10-r1::gentoo failed (test phase):
 *   Testing failed with python3.3
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 3777:  Called distutils-r1_src_test
 *   environment, line 1244:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  310:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3616:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2846:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2794:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2792:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2837:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  723:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1180:  Called python_test
 *   environment, line 3669:  Called die
 * The specific snippet of code:
 *       "$@" || die "Testing failed with ${EPYTHON}"
 *
 * If you need support, post the output of `emerge --info '=dev-python/cssutils-0.9.10-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/cssutils-0.9.10-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10'
 * S: '/var/tmp/portage/dev-python/cssutils-0.9.10-r1/work/cssutils-0.9.10'


# emerge --info
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.16.0, 3.12.0-gentooATH64 x86_64)
=================================================================
System uname: Linux-3.12.0-gentooATH64-x86_64-AMD_Phenom-tm-_II_X4_20_Processor-with-gentoo-2.2
KiB Mem:     8144108 total,    278964 free
KiB Swap:    4192928 total,   4192736 free
Timestamp of tree: Thu, 14 Nov 2013 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
--- snip
Comment 4 Thomas Raschbacher gentoo-dev 2014-05-08 07:02:26 UTC
hmm i just noticed something on the upstream ticket again:

cthedot

    changed status to resolved

kind of lame but test work on newer Python version (tested with 2.7.3) now and will probably fail on older. But this makes more sense as older versions will die out eventually anyway ;)


I will consider just requiring >=2.7.3 for tests .. there are only 2 older versions still in the tree even:

2.6.9
2.6.8-r3

@ia & rest of the python team what do you think is that acceptable? I want to get this bug sorted & closed ..
Comment 5 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-05-08 07:04:30 UTC
That sounds fine! python:2.6 will be deprecated soon, anyway.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2015-11-26 09:25:24 UTC
Drop from tree