summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-04 18:46:35 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-04 18:46:35 +0000
commit7eb176536d29d076f4b053fd550d20d73d8fdf3a (patch)
tree8d07c1f452accda580c35b788e7c9876ee843ae3
parentBug #353231: Version bump. (diff)
downloadgentoo-2-7eb176536d29d076f4b053fd550d20d73d8fdf3a.tar.gz
gentoo-2-7eb176536d29d076f4b053fd550d20d73d8fdf3a.tar.bz2
gentoo-2-7eb176536d29d076f4b053fd550d20d73d8fdf3a.zip
Fix tests.
(Portage version: 2.2.0_alpha19_p88/cvs/Linux x86_64)
-rw-r--r--dev-python/pygments/ChangeLog6
-rw-r--r--dev-python/pygments/files/pygments-1.4-fix_tests.patch14
-rw-r--r--dev-python/pygments/pygments-1.4.ebuild9
3 files changed, 26 insertions, 3 deletions
diff --git a/dev-python/pygments/ChangeLog b/dev-python/pygments/ChangeLog
index f705565f43a8..bb594d1ab045 100644
--- a/dev-python/pygments/ChangeLog
+++ b/dev-python/pygments/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pygments
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/ChangeLog,v 1.67 2011/01/04 20:35:12 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/ChangeLog,v 1.68 2011/02/04 18:46:35 arfrever Exp $
+
+ 04 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pygments-1.4.ebuild, +files/pygments-1.4-fix_tests.patch:
+ Fix tests.
*pygments-1.4 (04 Jan 2011)
diff --git a/dev-python/pygments/files/pygments-1.4-fix_tests.patch b/dev-python/pygments/files/pygments-1.4-fix_tests.patch
new file mode 100644
index 000000000000..d579dab02c23
--- /dev/null
+++ b/dev-python/pygments/files/pygments-1.4-fix_tests.patch
@@ -0,0 +1,14 @@
+https://bitbucket.org/birkenfeld/pygments-main/changeset/da2cb64f569c
+
+--- tests/test_basic_api.py
++++ tests/test_basic_api.py
+@@ -55,6 +55,9 @@
+ assert 'root' in cls._tokens, \
+ '%s has no root state' % cls
+
++ if cls.name == 'XQuery': # XXX temporary
++ return
++
+ tokens = list(inst.get_tokens(test_content))
+ txt = ""
+ for token in tokens:
diff --git a/dev-python/pygments/pygments-1.4.ebuild b/dev-python/pygments/pygments-1.4.ebuild
index 40f14897fe8d..f97f734db340 100644
--- a/dev-python/pygments/pygments-1.4.ebuild
+++ b/dev-python/pygments/pygments-1.4.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/pygments-1.4.ebuild,v 1.1 2011/01/04 20:35:12 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygments/pygments-1.4.ebuild,v 1.2 2011/02/04 18:46:35 arfrever Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
-inherit distutils
+inherit distutils eutils
MY_PN="Pygments"
MY_P="${MY_PN}-${PV}"
@@ -29,6 +29,11 @@ S="${WORKDIR}/${MY_P}"
DOCS="CHANGES"
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}/${P}-fix_tests.patch"
+}
+
src_test() {
testing() {
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" tests/run.py