Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 297111 | Differences between
and this patch

Collapse All | Expand All

(-)python-yadis/files/python-yadis-1.1.0-gentoo-test.patch (-1 lines)
Lines 23-74 Link Here
23
 
23
 
24
 echo -n 'Running tests... '
24
 echo -n 'Running tests... '
25
 if ! python ${YDIR}/yadis/test/runtests ; then
25
 if ! python ${YDIR}/yadis/test/runtests ; then
26
diff -ur python-yadis-1.1.0.orig/yadis/test/test_xri.py python-yadis-1.1.0/yadis/test/test_xri.py
(-)python-yadis/python-yadis-1.1.0.ebuild (-12 / +2 lines)
Lines 1-4 Link Here
1
.# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 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/python-yadis/python-yadis-1.1.0.ebuild,v 1.4 2010/07/08 17:05:54 arfrever Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-yadis/python-yadis-1.1.0.ebuild,v 1.4 2010/07/08 17:05:54 arfrever Exp $
4
4
Lines 30-46 Link Here
30
	# Fix broken test.
30
	# Fix broken test.
31
	epatch "${FILESDIR}/${P}-gentoo-test.patch"
31
	epatch "${FILESDIR}/${P}-gentoo-test.patch"
32
	
32
	
33
#	ls -ld yadis/etxrd.py
33
	sed -e 's:XMLError:XmlError:g' -i yadis/etxrd.py | die "notsededed"
34
#	sed -e 's/^try:/#try/' -i yadis/etxrd.py \
35
#		-e 's:^    from xml.parsers.expat import:#    from xml.parsers.expat import:' -i yadis/etxrd.py \
36
#		-e 's:^    from elementtree.ElementTree:#    from elementtree.ElementTree:' \
37
#		-e 's:^except ImportError:#except ImportError:' \
38
#		-e 's:^    from elementtree:from elementtree:' \
39
#		-e 's:^    from xmllib:from xmllib:' \
40
#		-i yadis/etxrd.py || die "notsededed"
41
#		sed -e 's/^    def testParse(self/#    def testParse(self/' \
42
#			-e 's:^        services = self._getServices():#        services = self._getServices():' \
43
#			-i yadis/test/test_etxrd.py || die "notsededed"
44
}
34
}
45
35
46
src_test() {
36
src_test() {

Return to bug 297111