diff options
author | Ian Delaney <idella4@gentoo.org> | 2012-11-16 14:59:27 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2012-11-16 14:59:27 +0000 |
commit | d56cd589efb8a3cdbe26cf55f27a4035c68df622 (patch) | |
tree | 823b0bafc137b6c009b7a7890a4e1417365d47fa /dev-python/vatnumber | |
parent | Remove now unnecessary toolchain-funcs inherit (diff) | |
download | gentoo-2-d56cd589efb8a3cdbe26cf55f27a4035c68df622.tar.gz gentoo-2-d56cd589efb8a3cdbe26cf55f27a4035c68df622.tar.bz2 gentoo-2-d56cd589efb8a3cdbe26cf55f27a4035c68df622.zip |
files/patch added to skip test acessing network, fixes Bug #440964 by flameeyes
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/vatnumber')
-rw-r--r-- | dev-python/vatnumber/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch | 26 | ||||
-rw-r--r-- | dev-python/vatnumber/vatnumber-1.0.ebuild | 8 |
3 files changed, 38 insertions, 3 deletions
diff --git a/dev-python/vatnumber/ChangeLog b/dev-python/vatnumber/ChangeLog index 1c08d2d8425c..b78155f8b115 100644 --- a/dev-python/vatnumber/ChangeLog +++ b/dev-python/vatnumber/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/vatnumber # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/vatnumber/ChangeLog,v 1.1 2012/10/30 09:09:36 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/vatnumber/ChangeLog,v 1.2 2012/11/16 14:59:27 idella4 Exp $ + + 17 Nov 2012; Ian Delaney <idella4@gentoo.org> + +files/vatnumber-1.0-skiptest.patch, vatnumber-1.0.ebuild: + files/patch added to skip test acessing network, fixes Bug #440964 by + flameeyes *vatnumber-1.0 (30 Oct 2012) diff --git a/dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch b/dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch new file mode 100644 index 000000000000..51a64790ff4d --- /dev/null +++ b/dev-python/vatnumber/files/vatnumber-1.0-skiptest.patch @@ -0,0 +1,26 @@ +diff -ur vatnumber-1.0.orig/vatnumber/tests.py vatnumber-1.0/vatnumber/tests.py +--- vatnumber/tests.py 2011-09-28 18:32:09.000000000 +0800 ++++ vatnumber/tests.py 2012-11-17 14:07:12.965811387 +0800 +@@ -4,7 +4,11 @@ + Unit test for vatnumber + ''' + +-import unittest ++try: ++ import unittest ++except: ++ import unittest2 as unittest ++ + import vatnumber + + VAT_NUMBERS = [ +@@ -198,6 +202,7 @@ + test = self.assertFalse + test(vatnumber.check_vat(code + number), code + number) + +- def test_vies(self): ++ @unittest.skip("test attempts to access network") ++ def test_vies(self): + ''' + Test vies + ''' diff --git a/dev-python/vatnumber/vatnumber-1.0.ebuild b/dev-python/vatnumber/vatnumber-1.0.ebuild index efbd21a94921..7148997cf615 100644 --- a/dev-python/vatnumber/vatnumber-1.0.ebuild +++ b/dev-python/vatnumber/vatnumber-1.0.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/vatnumber/vatnumber-1.0.ebuild,v 1.1 2012/10/30 09:09:36 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/vatnumber/vatnumber-1.0.ebuild,v 1.2 2012/11/16 14:59:27 idella4 Exp $ EAPI="3" PYTHON_DEPEND="2" DISTUTILS_SRC_TEST="setup.py" -inherit distutils +inherit distutils eutils DESCRIPTION="Module to validate VAT numbers" HOMEPAGE="http://code.google.com/p/vatnumber/" @@ -24,6 +24,10 @@ DEPEND="${RDEPEND} PYTHON_MODNAME="vatnumber" +src_prepare() { + epatch "${FILESDIR}"/${P}-skiptest.patch +} + src_install() { distutils_src_install dodoc COPYRIGHT README CHANGELOG |