Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 450560
Collapse All | Expand All

(-)setuptools/tests/test_easy_install.py (-9 / +10 lines)
Lines 306-320 Link Here
306
        old_stderr = sys.stderr
306
        old_stderr = sys.stderr
307
        sys.stdout = StringIO.StringIO()
307
        sys.stdout = StringIO.StringIO()
308
        sys.stderr = StringIO.StringIO()
308
        sys.stderr = StringIO.StringIO()
309
        try:
309
        if sys.version_info >= (2, 6):
310
            reset_setup_stop_context(
310
            try:
311
                lambda: run_setup(test_setup_py, ['install'])
311
                reset_setup_stop_context(
312
            )
312
                    lambda: run_setup(test_setup_py, ['install'])
313
        except SandboxViolation:
313
                )
314
            self.fail('Installation caused SandboxViolation')
314
            except SandboxViolation:
315
        finally:
315
                self.fail('Installation caused SandboxViolation')
316
            sys.stdout = old_stdout
316
            finally:
317
            sys.stderr = old_stderr
317
                sys.stdout = old_stdout
318
                sys.stderr = old_stderr
318
319
319
320
320
class TestSetupRequires(unittest.TestCase):
321
class TestSetupRequires(unittest.TestCase):
(-)setuptools-0.6.33.ebuild (-4 / +8 lines)
Lines 1-9 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.6.33.ebuild,v 1.4 2013/02/21 03:17:10 zmedico Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_8,1_9,2_0} )
6
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
7
7
8
inherit distutils-r1 eutils
8
inherit distutils-r1 eutils
9
9
Lines 31-48 Link Here
31
python_prepare_all() {
31
python_prepare_all() {
32
	local PATCHES=(
32
	local PATCHES=(
33
		"${FILESDIR}/${PN}-0.6_rc7-noexe.patch"
33
		"${FILESDIR}/${PN}-0.6_rc7-noexe.patch"
34
		"${FILESDIR}/distribute-0.6.16-fix_deprecation_warnings.patch"
34
		"${FILESDIR}/distribute-0.6.16-fix_deprecation_warnings.patch" 
35
#		"${FILESDIR}"/skip-test.patch
35
	)
36
	)
36
37
37
	# Disable tests requiring network connection.
38
	# Disable tests requiring network connection.
38
	rm -f setuptools/tests/test_packageindex.py
39
	rm -f setuptools/tests/test_packageindex.py
40
	sed -e 's:test_setup_requires_honors_fetch_params:_&:' \
41
		-i setuptools/tests/test_easy_install.py || die
39
42
40
	distutils-r1_python_prepare_all
43
	distutils-r1_python_prepare_all
41
}
44
}
42
45
43
python_test() {
46
python_test() {
44
	# they fail with everything but py2.6 & 2.7
47
	# they fail with everything but py2.6 & 2.7
45
	esetup.py test
48
	pushd "${BUILD_DIR}"/../
49
	"${PYTHON}" setup.py test || die
46
}
50
}
47
51
48
python_install() {
52
python_install() {

Return to bug 450560