1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #344 invalid

Failure in test_setup_requires_honors_fetch_params

Dirkjan Ochtman
created an issue

With 0.6.34 and tip, we see this failure on Gentoo Linux:

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
ok
test_create_zipfile (setuptools.tests.test_upload_docs.TestUploadDocsTest) ... ok

======================================================================
FAIL: test_setup_requires_honors_fetch_params (setuptools.tests.test_easy_install.TestSetupRequires)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/setuptools-0.6.34/work/distribute-0.6.34-python3_2/build/src/setuptools/tests/test_easy_install.py", line 367, in test_setup_requires_honors_fetch_params
    self.assertTrue(2 <= len(p_index.requests) <= 3)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 83 tests in 2.792s

FAILED (failures=1)
Error in atexit._run_exitfuncs:
TypeError: 'NoneType' object is not callable
 * ERROR: dev-python/setuptools-0.6.34 failed (test phase):

Downstream bug is here: https://bugs.gentoo.org/show_bug.cgi?id=450560

Comments (7)

  1. Erik Bray

    I'm pretty sure I was the last person to touch that test, but I can't reproduce either on 2.5 up. I don't have 2.4 anymore. Do we know what Python version this was with? As suggested in the downstream bug report a bisect would help.

  2. Erik Bray

    Actually on 3.x all the tests pass (I don't get that failure) but I do get the atexit Error at the end of the tests. I don't know if that issue is already reported or not, but it looks like a separate issue.

  3. Jason R. Coombs

    No clues. We've been unable to reproduce the issue, and the tests pass on our continuous integration tests for Python 3, so without additional information, there's little we can do. I suggest either: You may trace the issue in your environment, characterize the problem, and report back here (optionally supplying a patch), or You may put together a minimal environment where the issue can be reproduced by one of us. For example, if the issue only occurs on Gentoo, then put together instructions on how to spin up a Gentoo box using vagrant and run the tests where they fail.

    It's not even clear that the issue has any implications other than tests fail. If that's the extent of the undesirable behavior, it's going to be pretty low on the priorities. That said, I'd love for the tests to pass for everybody, so please if you can, provide more details.

    In the meantime, until we have more information, I'm going to mark this as invalid. Don't let that stop you from providing more information, at which point we can revisit the issue.

  4. idella5

    well I get it all right.

    /mnt/gen2/TmpDir/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36 $ PYTHONPATH=../distribute-0.6.36-python2_7/build/lib/ python setup.py test

    test_add_from_site_is_ignored (setuptools.tests.test_easy_install.TestPTHFileWriter) ... /mnt/gen2/TmpDir/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36/setuptools/command/easy_install.py:1642: UserWarning: Unbuilt egg for Unknown [unknown version] (/test/location/does-not-have-to-exist) Environment.add(self,dist) ok test_setup_requires_honors_fetch_params (setuptools.tests.test_easy_install.TestSetupRequires) ... Creating /tmp/tmpukGXri/site.py Processing distribute-test-fetcher-1.0.tar.gz Writing /tmp/easy_install-CLyMKh/setup.cfg Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-CLyMKh/egg-dist-tmp-YWzrpn Checking .pth file support in . /usr/bin/python2.7 -E -c pass Searching for does-not-exist Reading http://localhost:51604/does-not-exist/ Download error on http://localhost:51604/does-not-exist/: [Errno 101] Network is unreachable -- Some packages may not be found! Reading http://localhost:51604/does-not-exist/ Download error on http://localhost:51604/does-not-exist/: [Errno 101] Network is unreachable -- Some packages may not be found! Couldn't find index page for 'does-not-exist' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://localhost:51604/ Download error on http://localhost:51604/: [Errno 101] Network is unreachable -- Some packages may not be found! No local packages or download links found for does-not-exist FAIL test_local_index (setuptools.tests.test_easy_install.TestUserInstallTest) ... ok test_multiproc_atexit (setuptools.tests.test_easy_install.TestUserInstallTest) ... INFO:test_easy_install:this should not break ok

    So here you have a clear cause; Network is unreachable -- testuser@archtester /mnt/gen2/TmpDir/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36 $ ifconfig -a

    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.1.1.2 netmask 255.255.255.0 broadcast 10.1.1.255 inet6 fe80::1e6f:65ff:fead:eb1e prefixlen 64 scopeid 0x20<link> ether 1c:6f:65:ad:eb:1e txqueuelen 1000 (Ethernet) RX packets 357230 bytes 93829887 (89.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 358844 bytes 50350924 (48.0 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    lo: flags=8<LOOPBACK> mtu 16436 loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    sit0: flags=128<NOARP> mtu 1480 sit txqueuelen 0 (IPv6-in-IPv4) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    tunl0: flags=128<NOARP> mtu 1480 tunnel txqueuelen 0 (IPIP Tunnel) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    So what and how do you do what need be done to ensure http://localhost:51604/does-not-exist/: finds the should exist "does-not-exist"???

  5. Log in to comment