Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299514 - dev-python/pyflakes-0.4.0 fails tests with Python 2.6.4
Summary: dev-python/pyflakes-0.4.0 fails tests with Python 2.6.4
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-03 20:43 UTC by Thomas Kahle (RETIRED)
Modified: 2012-02-16 14:36 UTC (History)
2 users (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 Thomas Kahle (RETIRED) gentoo-dev 2010-01-03 20:43:16 UTC
Running tests in a stable x86 chroot. 
Testing dev-python/pyflakes-0.4.0 fails as follows

 * Testing of dev-python/pyflakes-0.4.0 with Python 2.6...                                                                        
/usr/lib/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead                                                                                                                      
  import sha                                                                                                                       
/usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead                                                                                                                              
  import itertools, md5                                                                                                            
................................................................................................................................F.........................                                                                                                            
======================================================================                                                             
FAIL: If the a source file is not readable, this is reported on standard                                                           
----------------------------------------------------------------------                                                             
Traceback (most recent call last):                                                                                                 
  File "/usr/lib/python2.6/site-packages/twisted/internet/defer.py", line 106, in maybeDeferred                                    
    result = f(*args, **kw)                                                                                                        
  File "/usr/lib/python2.6/site-packages/twisted/internet/utils.py", line 191, in runWithWarningsSuppressed                        
    result = f(*a, **kw)                                                                                                           
  File "/var/tmp/portage/dev-python/pyflakes-0.4.0/work/pyflakes-0.4.0/pyflakes/test/test_script.py", line 165, in test_permissionDenied                                                                                                                              
    self.assertEquals(count, 1)                                                                                                    
  File "/usr/lib/python2.6/site-packages/twisted/trial/unittest.py", line 262, in failUnlessEqual                                  
    % (msg, pformat(first), pformat(second)))                                                                                      
FailTest: not equal:                                                                                                               
a = 0                                                                                                                              
b = 1                                                                                                                              


----------------------------------------------------------------------
Ran 159 tests in 0.732s                                               

FAILED (failures=1)
 *                 
 * ERROR: dev-python/pyflakes-0.4.0 failed.
 * Call stack:                             
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line 3451:  Called python_execute_function 'testing'
 *             environment, line 2884:  Called die                              
 * The specific snippet of code:                                                
 *                       die "${failure_message}";                              
 *  The die message:                                                            
 *   Testing failed with Python 2.6 in testing() function                       
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/pyflakes-0.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyflakes-0.4.0/temp/environment'.
 *


Reproducible: Always




# emerge --info                                                                                
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32.2 i686)        
=================================================================                                          
System uname: Linux-2.6.32.2-i686-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-1.12.13           
Timestamp of tree: Sun, 03 Jan 2010 12:15:01 +0000                                                         
ccache version 2.4 [enabled]                                                                               
app-shells/bash:     4.0_p35                                                                               
dev-lang/python:     2.4.6, 2.6.4                                                                          
dev-util/ccache:     2.4-r7                                                                                
sys-apps/baselayout: 1.12.13                                                                               
sys-apps/sandbox:    1.6-r2                                                                                
sys-devel/autoconf:  2.13, 2.63-r1                                                                         
sys-devel/automake:  1.9.6-r2, 1.10.2                                                                      
sys-devel/binutils:  2.18-r3                                                                               
sys-devel/gcc-config: 1.4.1                                                                                
sys-devel/libtool:   2.2.6b                                                                                
virtual/os-headers:  2.6.27-r2                                                                             
ACCEPT_KEYWORDS="x86"                                                                                      
CBUILD="i686-pc-linux-gnu"                                                                                 
CFLAGS="-march=core2 -O2 -pipe"                                                                            
CHOST="i686-pc-linux-gnu"                                                                                  
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                                 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"               
CXXFLAGS="-march=core2 -O2 -pipe"                                                                                                  
DISTDIR="/usr/portage/distfiles"                                                                                                   
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg kde ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd thunar tiff tk truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-03 20:57:00 UTC
Which version of dev-python/twisted do you have installed?
Can you reproduce this problem when =dev-python/twisted-9.0* is installed?
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2010-01-03 21:01:28 UTC
(In reply to comment #1)
> Which version of dev-python/twisted do you have installed?
> Can you reproduce this problem when =dev-python/twisted-9.0* is installed?

Yes, problem can be reproduced with twisted-9.0* and twisted-8.2*
Comment 3 Johan Bergström 2010-01-03 21:24:44 UTC
..speaking of which - shouldn't USE="test" require twisted?

I can reproduce this with Twisted 9 and Python 2.6.4.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2010-01-04 08:45:52 UTC
There are also failures in pyflakes-0.3.0 (completely stable x86 system with twisted-8.2.0-r2). It looks like this:

>>> Source compiled.                                                                                                              
/usr/lib/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead                                                                                                                      
  import sha                                                                                                                       
/usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead                                                                                                                              
  import itertools, md5                                                                                                            
...................F...................................................................................................            
======================================================================                                                             
FAIL: test_packageImport                                                                                                           
----------------------------------------------------------------------                                                             
UnsupportedTrialFeature: ('unexpected success', <Todo reason="this has been hacked to treat 'import fu.bar' as just 'import fu'" errors=None>)                                                                                                                        

----------------------------------------------------------------------
Ran 125 tests in 0.826s                                               

FAILED (failures=1)
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-26 19:11:46 UTC
(In reply to comment #3)
> ..speaking of which - shouldn't USE="test" require twisted?

I have added this dependency.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-03-07 12:39:10 UTC
Same problem here on fully stable amd64 (with only pyflakes in p.keywords) chroot, testing for bug 298977. Seeing this is no regression, I'm moving forward with it...
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-10-07 11:51:38 UTC
Can this be reproduced with a more current pyflakes/python-2.6.x?
Comment 8 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-02-16 14:36:21 UTC
No recent information, closing.