$summary
test_test (setuptools.tests.test_test.TestTestTest) ... warning: build_py: byte-compiling is disabled, skipping. test_test (name.space.tests.TestTest) ... ok ---------------------------------------------------------------------- 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):
I can confirm that it still happens with hg tip.
Filed upstream.
Arfrever, in the upstream bug, was unable to reproduce. Maybe one of you can bisect it?
Hmm, wait, I'm having a different issue [1]. So I can't reproduce this one either. [1]:https://bitbucket.org/tarek/distribute/issue/345/test-failure-with-python31-and-lc_all-c
Tried 0.6.36, still messed up, getting this: ====================================================================== ERROR: test_install_site_py (setuptools.tests.test_easy_install.TestEasyInstallTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/src/setuptools/tests/test_easy_install.py", line 70, in test_install_site_py cmd.install_site_py() File "/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/src/setuptools/command/easy_install.py", line 1291, in install_site_py source = resource_string(Requirement.parse("distribute"), "site.py") File "/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/src/pkg_resources.py", line 928, in resource_string self, resource_name File "/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/src/pkg_resources.py", line 1201, in get_resource_string return self._get(self._fn(self.module_path, resource_name)) File "/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/src/pkg_resources.py", line 1328, in _get stream = open(path, 'rb') IOError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/site.py' In addition to the one from comment 1: ====================================================================== 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.36/work/distribute-0.6.36-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
IOError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/setuptools-0.6.36/work/distribute-0.6.36-python3_2/build/site.py' well that one's easy. By use of in source build it goes looking in distribute-0.6.36-python3_2/build/ for site.py. Without it, it goes looking in distribute-0.6.36-python3_2/site.py which is where it is with the in source build. For 1 the test is totally trivial, but you can get it to pass by taking the eclass out of the equation. pushd "${BUILD_DIR}"/../ "${PYTHON}" setup.py test || die dev-python/setuptools $ PYTHON_TARGETS=python3_2 ebuild setuptools-0.6.36.ebuild clean test ================================================ ---------------------------------------------------------------------- Ran 83 tests in 47.438s FAILED (failures=1) Error in atexit._run_exitfuncs: TypeError: 'NoneType' object is not callable As for test_setup_requires_honors_fetch_params (setuptools.tests.test_easy_install.TestSetupRequires) well it's testing easy_install which correct me if I'm wrong is out o' step with gentoo installs, and as the u/s dev said, < It's not even clear that the issue has any implications other than tests fail> Does this one really not qualify for being just @skipped or disabled by virtue of being nothing but a point to trip over with no feasible moral?
Created attachment 349008 [details, diff] a diff -u from cvs + skip-test.patch since this is distibute by another name and pertains to ALL 'impls', dev-python/setuptools $ PYTHON_TARGETS=python2_5 ebuild setuptools-0.6.36.ebuild clean test ====================================================================== ERROR: Regression test for issue #318 ---------------------------------------------------------------------- The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/usr/lib64/python2.5/site-packages/test-easy-install-18699.write-test' Oh ok. The test failed because it couldn't add or remove files in the installed instance of py2.5. and this is a failure!!!! Well setuptools-0.6.32 also fails on test_setup_requires_honors_fetch_params, however I'm most uncertain what benefit a bisect analysis supplies given that it's inconsistent even between gentoo systems.
Just for the record, the "test_setup_requires_honors_fetch_params" failure still occurs with dev-python/setuptools-0.8-r1 .
commit bea1f6190d0aca59a83db41435f992f0cb97e1ca Author: Justin Lecher <jlec@gentoo.org> Date: Mon Nov 23 10:42:05 2015 +0100 dev-python/setuptools: Drop old obsoletes: Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=447144 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=450560 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=468628 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=519956 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=537122 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=522456 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bea1f6190d0aca59a83db41435f992f0cb97e1ca