diff options
author | Christian Faulhammer <fauli@gentoo.org> | 2010-12-18 11:13:42 +0000 |
---|---|---|
committer | Christian Faulhammer <fauli@gentoo.org> | 2010-12-18 11:13:42 +0000 |
commit | ead92e2c4e88fae63206ae829a8038f70a1ac62d (patch) | |
tree | 2479d65a105c3d1cc68a13ff82b644900e8092a2 /dev-python/testtools | |
parent | Version bumped (diff) | |
download | gentoo-2-ead92e2c4e88fae63206ae829a8038f70a1ac62d.tar.gz gentoo-2-ead92e2c4e88fae63206ae829a8038f70a1ac62d.tar.bz2 gentoo-2-ead92e2c4e88fae63206ae829a8038f70a1ac62d.zip |
version bump, fixes test failures from bug 341683
(Portage version: 2.1.9.24/cvs/Linux i686)
Diffstat (limited to 'dev-python/testtools')
-rw-r--r-- | dev-python/testtools/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/testtools/testtools-0.9.8.ebuild | 38 |
2 files changed, 45 insertions, 1 deletions
diff --git a/dev-python/testtools/ChangeLog b/dev-python/testtools/ChangeLog index 698c7115afe8..1c09075bb7d4 100644 --- a/dev-python/testtools/ChangeLog +++ b/dev-python/testtools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/testtools # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.16 2010/10/17 22:16:10 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.17 2010/12/18 11:13:42 fauli Exp $ + +*testtools-0.9.8 (18 Dec 2010) + + 18 Dec 2010; Christian Faulhammer <fauli@gentoo.org> + +testtools-0.9.8.ebuild: + version bump, fixes test failures from bug 341683 *testtools-0.9.7 (17 Oct 2010) diff --git a/dev-python/testtools/testtools-0.9.8.ebuild b/dev-python/testtools/testtools-0.9.8.ebuild new file mode 100644 index 000000000000..220ad1281db1 --- /dev/null +++ b/dev-python/testtools/testtools-0.9.8.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/testtools-0.9.8.ebuild,v 1.1 2010/12/18 11:13:42 fauli Exp $ + +EAPI="3" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils versionator + +SERIES="$(get_version_component_range 1-2)" + +DESCRIPTION="Extensions to the Python unittest library" +HOMEPAGE="https://launchpad.net/testtools http://pypi.python.org/pypi/testtools" +SRC_URI="http://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + distutils_src_prepare + + # Fix tests with Python 3. + sed -e 's/raise RuntimeError, "Something went wrong!"/raise RuntimeError("Something went wrong!")/' -i testtools/tests/test_monkey.py +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" -m testtools.run testtools.tests.test_suite + } + python_execute_function testing +} + +# dev-python/subunit imports some objects from testtools.tests.helpers, so tests need to be installed. |