Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 191117
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Python Gentoo Team <python@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: AI0867@gmail.com
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 191117 depends on: Show dependency tree
Bug 191117 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-09-03 03:16 0000
dev-python/setuptools fails an assertion (assert(False)) in the test phase

Reproducible: Always

Steps to Reproduce:
1. emerge -u mysql-python (pulls in setuptools)
2. setuptools fails to merge
3.

Actual Results:  
>>> Emerging (1 of 2) dev-python/setuptools-0.6_rc6 to /
 * setuptools-0.6c6.tar.gz RMD160 ;-) ...                                      
                                                       [ ok ]
 * setuptools-0.6c6.tar.gz SHA1 ;-) ...                                        
                                                       [ ok ]
 * setuptools-0.6c6.tar.gz SHA256 ;-) ...                                      
                                                       [ ok ]
 * setuptools-0.6c6.tar.gz size ;-) ...                                        
                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                           
                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                          
                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                         
                                                       [ ok ]
 * checking setuptools-0.6c6.tar.gz ;-) ...                                    
                                                       [ ok ]
>>> cfg-update-1.8.2-r1: Skipping checksum index updating...
>>> Unpacking source...
>>> Unpacking setuptools-0.6c6.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6_rc6/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6_rc6/work/setuptools-0.6c6 ...
running build
running build_py
creating build
creating build/lib
copying pkg_resources.py -> build/lib
copying easy_install.py -> build/lib
copying site.py -> build/lib
creating build/lib/setuptools
copying setuptools/package_index.py -> build/lib/setuptools
copying setuptools/archive_util.py -> build/lib/setuptools
copying setuptools/dist.py -> build/lib/setuptools
copying setuptools/sandbox.py -> build/lib/setuptools
copying setuptools/depends.py -> build/lib/setuptools
copying setuptools/extension.py -> build/lib/setuptools
copying setuptools/__init__.py -> build/lib/setuptools
creating build/lib/setuptools/command
copying setuptools/command/upload.py -> build/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command
copying setuptools/command/install_lib.py -> build/lib/setuptools/command
copying setuptools/command/build_ext.py -> build/lib/setuptools/command
copying setuptools/command/install.py -> build/lib/setuptools/command
copying setuptools/command/test.py -> build/lib/setuptools/command
copying setuptools/command/build_py.py -> build/lib/setuptools/command
copying setuptools/command/setopt.py -> build/lib/setuptools/command
copying setuptools/command/sdist.py -> build/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command
copying setuptools/command/register.py -> build/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command
copying setuptools/command/rotate.py -> build/lib/setuptools/command
copying setuptools/command/develop.py -> build/lib/setuptools/command
copying setuptools/command/alias.py -> build/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command
copying setuptools/command/saveopts.py -> build/lib/setuptools/command
copying setuptools/command/__init__.py -> build/lib/setuptools/command
copying setuptools/command/easy_install.py -> build/lib/setuptools/command
copying setuptools/command/egg_info.py -> build/lib/setuptools/command
creating build/lib/setuptools/tests
copying setuptools/tests/doctest.py -> build/lib/setuptools/tests
copying setuptools/tests/test_packageindex.py -> build/lib/setuptools/tests
copying setuptools/tests/test_resources.py -> build/lib/setuptools/tests
copying setuptools/tests/__init__.py -> build/lib/setuptools/tests
copying setuptools/gui.exe -> build/lib/setuptools
copying setuptools/cli.exe -> build/lib/setuptools
>>> Source compiled.
running test
running egg_info
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
running build_ext
testExtractConst (setuptools.tests.DependsTests) ... ok
testFindModule (setuptools.tests.DependsTests) ... ok
testModuleExtract (setuptools.tests.DependsTests) ... ok
testRequire (setuptools.tests.DependsTests) ... ok
testContents (setuptools.tests.DistroTests) ... ok
testDistroType (setuptools.tests.DistroTests) ... ok
testEmpty (setuptools.tests.DistroTests) ... ok
testExcludePackage (setuptools.tests.DistroTests) ... ok
testExcludePackages (setuptools.tests.DistroTests) ... ok
testIncludeExclude (setuptools.tests.DistroTests) ... ok
testInvalidIncludeExclude (setuptools.tests.DistroTests) ... ok
testAvailability (setuptools.tests.FeatureTests) ... ok
testDefaults (setuptools.tests.FeatureTests) ... ok
testFeatureOptions (setuptools.tests.FeatureTests) ... ok
testFeatureWithInvalidRemove (setuptools.tests.FeatureTests) ... ok
testUseFeatures (setuptools.tests.FeatureTests) ... ok
testConflictingOptions (setuptools.tests.TestCommandTests) ... ok
testDefaultSuite (setuptools.tests.TestCommandTests) ... ok
testDefaultWModuleOnCmdLine (setuptools.tests.TestCommandTests) ... ok
testLongOptSuiteWNoDefault (setuptools.tests.TestCommandTests) ... ok
testNoSuite (setuptools.tests.TestCommandTests) ... ok
testTestIsCommand (setuptools.tests.TestCommandTests) ... ok
Doctest: api_tests.txt ... ok
test_bad_urls (setuptools.tests.test_packageindex.TestPackageIndex) ... FAIL
testCollection (setuptools.tests.test_resources.DistroTests) ... ok
testDistroBasics (setuptools.tests.test_resources.DistroTests) ... ok
testDistroDependsOptions (setuptools.tests.test_resources.DistroTests) ... ok
testDistroDependsSimple (setuptools.tests.test_resources.DistroTests) ... ok
testDistroMetadata (setuptools.tests.test_resources.DistroTests) ... ok
testDistroParse (setuptools.tests.test_resources.DistroTests) ... ok
testResolve (setuptools.tests.test_resources.DistroTests) ... ok
testBasics (setuptools.tests.test_resources.EntryPointTests) ... ok
testParse (setuptools.tests.test_resources.EntryPointTests) ... ok
testParseList (setuptools.tests.test_resources.EntryPointTests) ... ok
testParseMap (setuptools.tests.test_resources.EntryPointTests) ... ok
testRejects (setuptools.tests.test_resources.EntryPointTests) ... ok
testEmptyParse (setuptools.tests.test_resources.ParseTests) ... ok
testSafeName (setuptools.tests.test_resources.ParseTests) ... ok
testSafeVersion (setuptools.tests.test_resources.ParseTests) ... ok
testSimpleRequirements (setuptools.tests.test_resources.ParseTests) ... ok
testSplitting (setuptools.tests.test_resources.ParseTests) ... ok
testVersionEquality (setuptools.tests.test_resources.ParseTests) ... ok
testVersionOrdering (setuptools.tests.test_resources.ParseTests) ... ok
testYielding (setuptools.tests.test_resources.ParseTests) ... ok
testAdvancedContains (setuptools.tests.test_resources.RequirementsTests) ... ok
testBasicContains (setuptools.tests.test_resources.RequirementsTests) ... ok
testBasics (setuptools.tests.test_resources.RequirementsTests) ... ok
testOptionsAndHashing (setuptools.tests.test_resources.RequirementsTests) ...
ok
testOrdering (setuptools.tests.test_resources.RequirementsTests) ... ok
testVersionEquality (setuptools.tests.test_resources.RequirementsTests) ... ok

======================================================================
FAIL: test_bad_urls (setuptools.tests.test_packageindex.TestPackageIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/var/tmp/portage/dev-python/setuptools-0.6_rc6/work/setuptools-0.6c6/setuptools/tests/test_packageindex.py",
line 19, in test_bad_urls
    self.assert_(False)
AssertionError

----------------------------------------------------------------------
Ran 50 tests in 0.394s

FAILED (failures=1)

!!! ERROR: dev-python/setuptools-0.6_rc6 failed.

Expected Results:  
successful merge

------- Comment #1 From Ali Polatel (RETIRED) 2007-09-06 12:34:50 0000 -------
The tests work fine here. Can you please post your emerge --info?

------- Comment #2 From AI0867@gmail.com 2007-09-06 13:31:46 0000 -------
Portage 2.1.2.12 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4,
2.6.21-gentoo-r4 i686)
=================================================================
System uname: 2.6.21-gentoo-r4 i686 AMD Athlon(tm) processor
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 06 Sep 2007 00:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-tbird -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-tbird -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distcc distlocks metadata-transfer parallel-fetch sandbox
sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://mirror.scarlet-internet.nl/pub/gentoo http://gentoo.tiscali.nl/
ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ "
MAKEOPTS="-j1"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X acl acpi afs animgif apache2 bash-completion berkdb
bzip2 cgi cjk cli colordiff cracklib crypt cups dba dbm dbx dedicated doc
erandom fam flatfile fortran ftp gcj gd gdbm gif glsa gnuplot gnutls graphviz
gtk gtk2 http hub iconv icp idn imap imlib inifile innodb irc ithreads java
javascript jikes jpeg lesstif libcaca libedit libg++ libwww ligbda maildir
mailwrapper mbox md5sum mime ming mmx mmxext mng motif mpm-worker multiuser
mysql mysqli ncurses netboot nfs nls nntp nptl nptlonly offensive ogg openntpd
openssh openssl pam pcre pdf perl php png posix postgres prefixaq priority
python qt3 qt4 reflection regex ruby session sftp simplexml slang smtp sockets
spell spl sql ssl startup-notification subversion svg syslog sysvipc szip tcl
tcpd test tetex threads tidy tokenizer tos truetype unicode vim vim-pager
vim-syntax watchdog x86 xhtml xml zip zlib zsh-completion" ELIBC="glibc"
KERNEL="linux" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

------- Comment #3 From MichaƂ Kiedrowicz 2007-09-19 10:38:38 0000 -------
This is caused by running apache server.

Contents of "setuptools/tests/test_packageindex.py":

"""Package Index Tests
"""
# More would be better!

import os, shutil, tempfile, unittest
import pkg_resources
import setuptools.package_index

class TestPackageIndex(unittest.TestCase):

    def test_bad_urls(self):
        index = setuptools.package_index.PackageIndex()
        url = 'http://127.0.0.1/nonesuch/test_package_index'
        try:
            index.open_url(url)
        except Exception, v:
            self.assert_(url in str(v))
        else:
            self.assert_(False)

It tries to open url on localhost. When apache is running, this test fails.
Without apache, all tests pass.

------- Comment #4 From Ali Polatel (RETIRED) 2007-09-19 23:35:22 0000 -------
(In reply to comment #3)
> This is caused by running apache server.
... 
> It tries to open url on localhost. When apache is running, this test fails.
> Without apache, all tests pass.
> 

This test accesses the network and shouldn't be run. The updated ebuild
removes test_packageindex.py which only has test_bad_urls. Thanks ;)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug